diff options
| author | Vicent Marti <tanoku@gmail.com> | 2011-03-03 21:58:37 +0200 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2011-03-03 21:58:37 +0200 |
| commit | 3c41c635fbe330da902f8ccde6494cf7709dfea7 (patch) | |
| tree | 26e96540bd871c93de215a8cdb537c5180540d3a /src/vector.c | |
| parent | b64e11d1fe13a15edbe0f26dc5aaf96aa07f9d91 (diff) | |
| download | libgit2-3c41c635fbe330da902f8ccde6494cf7709dfea7.tar.gz | |
Fix compilation in MSVC
MSVC cannot substract void pointers. Go figure.
Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'src/vector.c')
| -rw-r--r-- | src/vector.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vector.c b/src/vector.c index 631364031..d0b0c5c56 100644 --- a/src/vector.c +++ b/src/vector.c @@ -133,7 +133,7 @@ int git_vector_search2(git_vector *v, git_vector_cmp key_lookup, const void *key static int strict_comparison(const void *a, const void *b) { - return a - b; + return (a == b) ? 0 : -1; } int git_vector_search(git_vector *v, const void *entry) |
