mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-05 15:33:51 +00:00
Fix compilation in MSVC
MSVC cannot substract void pointers. Go figure. Signed-off-by: Vicent Marti <tanoku@gmail.com>
This commit is contained in:
parent
b64e11d1fe
commit
3c41c635fb
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user