summaryrefslogtreecommitdiff
path: root/src/cache.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2017-01-25 14:05:24 +0100
committerPatrick Steinhardt <ps@pks.im>2017-02-17 11:41:06 +0100
commit63e914cbf4e6cb07d39b5a6f31749f78247ff594 (patch)
tree3556c9b0723929a4ebd3084596a56943813b3b08 /src/cache.h
parenta1b23df58cb704a1ac3e0670a26c804d8a08ed2e (diff)
downloadlibgit2-63e914cbf4e6cb07d39b5a6f31749f78247ff594.tar.gz
khash: avoid using `kh_size` directly
Diffstat (limited to 'src/cache.h')
-rw-r--r--src/cache.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cache.h b/src/cache.h
index 697123739..0f0bfcf5d 100644
--- a/src/cache.h
+++ b/src/cache.h
@@ -53,7 +53,7 @@ void *git_cache_get_any(git_cache *cache, const git_oid *oid);
GIT_INLINE(size_t) git_cache_size(git_cache *cache)
{
- return (size_t)kh_size(cache->map);
+ return (size_t)git_oidmap_size(cache->map);
}
GIT_INLINE(void) git_cached_obj_incref(void *_obj)