summaryrefslogtreecommitdiff
path: root/src/sortedcache.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2017-01-25 14:26:58 +0100
committerPatrick Steinhardt <ps@pks.im>2017-02-17 11:41:06 +0100
commitcb18386f72f07fc7316a0be892b98185d4aef7ce (patch)
tree93dc35b432d773d7fd279887bda65601ca6b2ca4 /src/sortedcache.c
parent76e671a653360f816765fe55b367d29946361490 (diff)
downloadlibgit2-cb18386f72f07fc7316a0be892b98185d4aef7ce.tar.gz
khash: avoid using `kh_val`/`kh_value` directly
Diffstat (limited to 'src/sortedcache.c')
-rw-r--r--src/sortedcache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sortedcache.c b/src/sortedcache.c
index c5e338f75..48e8b6c71 100644
--- a/src/sortedcache.c
+++ b/src/sortedcache.c
@@ -300,7 +300,7 @@ int git_sortedcache_upsert(void **out, git_sortedcache *sc, const char *key)
if (!error)
kh_key(sc->map, pos) = item_key;
- kh_val(sc->map, pos) = item;
+ git_strmap_value_at(sc->map, pos) = item;
error = git_vector_insert(&sc->items, item);
if (error < 0)