Commit e2164da5 by Vicent Marti

sha1_lookup: Hello my name is MSVC and how do I pointer

parent 67591c8c
......@@ -183,9 +183,11 @@ int sha1_position(const void *table,
unsigned lo, unsigned hi,
const unsigned char *key)
{
const unsigned char *base = table;
do {
unsigned mi = (lo + hi) / 2;
int cmp = git_oid__cmp(table + mi * stride, (git_oid *)key);
int cmp = git_oid__cmp((git_oid *)(base + mi * stride), (git_oid *)key);
if (!cmp)
return mi;
......
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