Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-07-11 22:04:42 +0400
committerRussell Belfer <rb@github.com>2013-07-11 22:04:42 +0400
commit584f2d3013df6744fa7b5c5398a78b96f31e25f4 (patch)
tree4de47509da8826dde16846e8d04a545f2d050408 /src/commit.c
parent814de0bcab99f82dc637ba7ae34df5a0e9e1138c (diff)
Fix warnings on Win64
Diffstat (limited to 'src/commit.c')
-rw-r--r--src/commit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commit.c b/src/commit.c
index cc912a7be..15a195fe5 100644
--- a/src/commit.c
+++ b/src/commit.c
@@ -163,7 +163,8 @@ int git_commit__parse(void *_commit, git_odb_object *odb_obj)
const char *buffer_start = git_odb_object_data(odb_obj), *buffer;
const char *buffer_end = buffer_start + git_odb_object_size(odb_obj);
git_oid parent_id;
- size_t parent_count = 0, header_len;
+ uint32_t parent_count = 0;
+ size_t header_len;
/* find end-of-header (counting parents as we go) */
for (buffer = buffer_start; buffer < buffer_end; ++buffer) {