diff options
author | Patrick Steinhardt <ps@pks.im> | 2017-01-27 14:05:10 +0100 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2017-02-17 11:41:06 +0100 |
commit | 85d2748c6f75bd810c7376647c8ae32984b5e3bb (patch) | |
tree | a4468d9df7903b1659fb5eca622d453ab3acefaf /src/indexer.c | |
parent | f31cb45ad2ca46cc743dfadf5ac8b916cbe4ea9c (diff) | |
download | libgit2-85d2748c6f75bd810c7376647c8ae32984b5e3bb.tar.gz |
khash: avoid using `kh_key`/`kh_val` as lvalue
Diffstat (limited to 'src/indexer.c')
-rw-r--r-- | src/indexer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/indexer.c b/src/indexer.c index 888a06cdb..3e88bc7ba 100644 --- a/src/indexer.c +++ b/src/indexer.c @@ -308,7 +308,7 @@ static int store_object(git_indexer *idx) } - git_oidmap_value_at(idx->pack->idx_cache, k) = pentry; + git_oidmap_set_value_at(idx->pack->idx_cache, k, pentry); git_oid_cpy(&entry->oid, &oid); @@ -356,7 +356,7 @@ static int save_entry(git_indexer *idx, struct entry *entry, struct git_pack_ent return -1; } - git_oidmap_value_at(idx->pack->idx_cache, k) = pentry; + git_oidmap_set_value_at(idx->pack->idx_cache, k, pentry); /* Add the object to the list */ if (git_vector_insert(&idx->objects, entry) < 0) |