summaryrefslogtreecommitdiff
path: root/src/cache.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2017-01-25 14:20:56 +0100
committerPatrick Steinhardt <ps@pks.im>2017-02-17 11:41:06 +0100
commit76e671a653360f816765fe55b367d29946361490 (patch)
tree59e17bc36d31d4350541e3b7f241744a37d54515 /src/cache.c
parentc37b069b9f324c3e68ca5ddfce9588aabe97f346 (diff)
downloadlibgit2-76e671a653360f816765fe55b367d29946361490.tar.gz
khash: avoid using `kh_exist` directly
Diffstat (limited to 'src/cache.c')
-rw-r--r--src/cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cache.c b/src/cache.c
index 0309c3d8e..ae42216c9 100644
--- a/src/cache.c
+++ b/src/cache.c
@@ -127,7 +127,7 @@ static void cache_evict_entries(git_cache *cache)
while (evict_count > 0) {
khiter_t pos = seed++ % git_oidmap_end(cache->map);
- if (kh_exist(cache->map, pos)) {
+ if (git_oidmap_has_data(cache->map, pos)) {
git_cached_obj *evict = kh_val(cache->map, pos);
evict_count--;