Commit 3c41c635 by Vicent Marti

Fix compilation in MSVC

MSVC cannot substract void pointers. Go figure.

Signed-off-by: Vicent Marti <tanoku@gmail.com>
parent b64e11d1
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment