diff options
| author | nulltoken <emeric.fermas@gmail.com> | 2011-09-21 23:17:39 +0200 |
|---|---|---|
| committer | nulltoken <emeric.fermas@gmail.com> | 2011-09-22 18:58:47 +0200 |
| commit | ad196c6ae669e2d69503eba942402e7215ea7b82 (patch) | |
| tree | 68b2d1a76fbbbfdda942491c1211a74a11b46c16 /src/index.c | |
| parent | e1b86444676b70154bf8ab450d429bdef57a8276 (diff) | |
| download | libgit2-ad196c6ae669e2d69503eba942402e7215ea7b82.tar.gz | |
config: make git_config_[get|set]_long() able to properly deal with 8 bytes wide values
Should fix issue #419.
Signed-off-by: nulltoken <emeric.fermas@gmail.com>
Diffstat (limited to 'src/index.c')
| -rw-r--r-- | src/index.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/index.c b/src/index.c index e6a181979..f6f282d32 100644 --- a/src/index.c +++ b/src/index.c @@ -543,7 +543,7 @@ static int read_tree_internal(git_index_tree **out, { git_index_tree *tree; const char *name_start, *buffer; - long count; + int count; int error = GIT_SUCCESS; if ((tree = git__malloc(sizeof(git_index_tree))) == NULL) @@ -685,7 +685,7 @@ static int read_unmerged(git_index *index, const char *buffer, size_t size) buffer += len; for (i = 0; i < 3; i++) { - long tmp; + int tmp; if (git__strtol32(&tmp, buffer, &endptr, 8) < GIT_SUCCESS || !endptr || endptr == buffer || *endptr || (unsigned)tmp > UINT_MAX) |
