diff options
| author | Vicent Marti <tanoku@gmail.com> | 2011-08-31 03:45:34 +0200 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2011-08-31 03:56:57 +0200 |
| commit | c035ede234675075abee8a2546a05113f72450ed (patch) | |
| tree | 7a893bc32075f0590a7e9f8acaf27988b38b9b74 /src/index.c | |
| parent | 2fcf9c82735cec8874d5e12ed18380c77d629706 (diff) | |
| download | libgit2-c035ede234675075abee8a2546a05113f72450ed.tar.gz | |
Fix compilation in MinGW
Diffstat (limited to 'src/index.c')
| -rw-r--r-- | src/index.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.c b/src/index.c index f20c2a7ab..bbe9efa49 100644 --- a/src/index.c +++ b/src/index.c @@ -706,7 +706,7 @@ static int read_unmerged(git_index *index, const char *buffer, size_t size) long tmp; if (git__strtol32(&tmp, buffer, &endptr, 8) < GIT_SUCCESS || - !endptr || endptr == buffer || *endptr || tmp > UINT_MAX) + !endptr || endptr == buffer || *endptr || (unsigned)tmp > UINT_MAX) return GIT_ERROR; lost->mode[i] = tmp; |
