diff options
Diffstat (limited to 'tests/t07-hashtable.c')
| -rw-r--r-- | tests/t07-hashtable.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/t07-hashtable.c b/tests/t07-hashtable.c index 0b362cafd..7313f2cc9 100644 --- a/tests/t07-hashtable.c +++ b/tests/t07-hashtable.c @@ -37,9 +37,8 @@ typedef struct _aux_object { uint32_t hash_func(const void *key, int hash_id) { uint32_t r; - git_oid *id; + const git_oid *id = key; - id = (git_oid *)key; memcpy(&r, id->id + (hash_id * sizeof(uint32_t)), sizeof(r)); return r; } |
