summaryrefslogtreecommitdiff
path: root/src/sha1_lookup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sha1_lookup.c')
-rw-r--r--src/sha1_lookup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sha1_lookup.c b/src/sha1_lookup.c
index 35149a18d..ce067caaa 100644
--- a/src/sha1_lookup.c
+++ b/src/sha1_lookup.c
@@ -187,7 +187,7 @@ int sha1_position(const void *table,
do {
unsigned mi = (lo + hi) / 2;
- int cmp = git_oid__cmp((git_oid *)(base + mi * stride), (git_oid *)key);
+ int cmp = git_oid__hashcmp(base + mi * stride, key);
if (!cmp)
return mi;