Fix compilation in MSVC

MSVC cannot substract void pointers. Go figure.

Signed-off-by: Vicent Marti <tanoku@gmail.com>
This commit is contained in:
Vicent Marti 2011-03-03 21:58:37 +02:00
parent b64e11d1fe
commit 3c41c635fb

View File

@ -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)