Commit c5d8745f by Romain Geissler

Tree: Some more size_t to unsigned int type change.

parent f11e0797
...@@ -288,7 +288,7 @@ static void sort_entries(git_treebuilder *bld) ...@@ -288,7 +288,7 @@ static void sort_entries(git_treebuilder *bld)
int git_treebuilder_create(git_treebuilder **builder_p, const git_tree *source) int git_treebuilder_create(git_treebuilder **builder_p, const git_tree *source)
{ {
git_treebuilder *bld; git_treebuilder *bld;
size_t i, source_entries = DEFAULT_TREE_SIZE; unsigned int i, source_entries = DEFAULT_TREE_SIZE;
assert(builder_p); assert(builder_p);
...@@ -409,7 +409,7 @@ int git_treebuilder_remove(git_treebuilder *bld, const char *filename) ...@@ -409,7 +409,7 @@ int git_treebuilder_remove(git_treebuilder *bld, const char *filename)
int git_treebuilder_write(git_oid *oid, git_repository *repo, git_treebuilder *bld) int git_treebuilder_write(git_oid *oid, git_repository *repo, git_treebuilder *bld)
{ {
size_t i, size = 0; unsigned int i, size = 0;
char filemode[MAX_FILEMODE_BYTES + 1 + 1]; char filemode[MAX_FILEMODE_BYTES + 1 + 1];
git_odb_stream *stream; git_odb_stream *stream;
int error; int error;
...@@ -453,7 +453,7 @@ int git_treebuilder_write(git_oid *oid, git_repository *repo, git_treebuilder *b ...@@ -453,7 +453,7 @@ int git_treebuilder_write(git_oid *oid, git_repository *repo, git_treebuilder *b
void git_treebuilder_filter(git_treebuilder *bld, int (*filter)(const git_tree_entry *, void *), void *payload) void git_treebuilder_filter(git_treebuilder *bld, int (*filter)(const git_tree_entry *, void *), void *payload)
{ {
size_t i; unsigned int i;
assert(bld && filter); assert(bld && filter);
...@@ -466,7 +466,7 @@ void git_treebuilder_filter(git_treebuilder *bld, int (*filter)(const git_tree_e ...@@ -466,7 +466,7 @@ void git_treebuilder_filter(git_treebuilder *bld, int (*filter)(const git_tree_e
void git_treebuilder_clear(git_treebuilder *bld) void git_treebuilder_clear(git_treebuilder *bld)
{ {
size_t i; unsigned int i;
assert(bld); assert(bld);
for (i = 0; i < bld->entries.length; ++i) { for (i = 0; i < bld->entries.length; ++i) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment