diff options
author | Russell Belfer <rb@github.com> | 2012-04-13 13:00:10 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2012-04-17 10:47:39 -0700 |
commit | 44ef8b1b300f0cd3d8572fa1b40d257462f28240 (patch) | |
tree | 34f38bee213d1041fec7ac9dc4e63191182f3bf8 /src/util.c | |
parent | f201d613a80f7ad6f54d90eb7a7a0d8b8c72676b (diff) | |
download | libgit2-44ef8b1b300f0cd3d8572fa1b40d257462f28240.tar.gz |
Fix warnings on 64-bit windows builds
This fixes all the warnings on win64 except those in deps, which
come from the regex code.
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/util.c b/src/util.c index 81ad10609..2cf7b158b 100644 --- a/src/util.c +++ b/src/util.c @@ -391,10 +391,11 @@ int git__bsearch( int (*compare)(const void *, const void *), size_t *position) { - int lim, cmp = -1; + unsigned int lim; + int cmp = -1; void **part, **base = array; - for (lim = array_len; lim != 0; lim >>= 1) { + for (lim = (unsigned int)array_len; lim != 0; lim >>= 1) { part = base + (lim >> 1); cmp = (*compare)(key, *part); if (cmp == 0) { |