Merge pull request #6904 from libgit2/ethomson/hashmap

hashmap: further asserts
This commit is contained in:
Edward Thomson
2024-10-07 22:01:43 +01:00
committed by GitHub

View File

@@ -109,6 +109,7 @@ typedef uint32_t git_hashmap_iter_t;
{ \
if (h->n_buckets) { \
uint32_t k, i, last, mask, step = 0; \
GIT_ASSERT((h)->flags); \
mask = h->n_buckets - 1; \
k = __hash_fn(key); \
i = k & mask; \