8000 hashmap: further asserts · libgit2/libgit2@6d8d5de · GitHub
[go: up one dir, main page]

Skip to content

Commit 6d8d5de

Browse files
committed
hashmap: further asserts
Continue to quiet down mediocre static code analysis.
1 parent f71f154 commit 6d8d5de

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/util/hashmap.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ typedef uint32_t git_hashmap_iter_t;
109109
{ \
110110
if (h->n_buckets) { \
111111
uint32_t k, i, last, mask, step = 0; \
112+
GIT_ASSERT((h)->flags); \
112113
mask = h->n_buckets - 1; \
113114
k = __hash_fn(key); \
114115
i = k & mask; \

0 commit comments

Comments
 (0)
0