summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/revwalk.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/revwalk.c b/src/revwalk.c
index e0b6cbe1d..f7a56ccf5 100644
--- a/src/revwalk.c
+++ b/src/revwalk.c
@@ -115,9 +115,8 @@ static int commit_time_cmp(void *a, void *b)
static uint32_t object_table_hash(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;
}