mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
Merge pull request #6904 from libgit2/ethomson/hashmap
hashmap: further asserts
This commit is contained in:
@@ -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; \
|
||||
|
||||
Reference in New Issue
Block a user