Commit 831e20ac by Edward Thomson

oidmap: hash on the id, not the object

We explicitly want to hash on the id data, not the beginning of the
object data, which may contain other information in the future.
parent 590ff981
......@@ -19,7 +19,7 @@ __KHASH_TYPE(oid, const git_oid *, void *)
GIT_INLINE(khint_t) git_oidmap_hash(const git_oid *oid)
{
khint_t h;
memcpy(&h, oid, sizeof(khint_t));
memcpy(&h, oid->id, sizeof(khint_t));
return h;
}
......
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