hashmap: correctly sized MAX

This commit is contained in:
Edward Thomson
2026-05-22 11:21:37 +01:00
parent 5787752448
commit 873ab30fe4

View File

@@ -107,7 +107,7 @@ typedef uint32_t git_hashmap_iter_t;
} \
GIT_INLINE(int) name##__idx(uint32_t *out, name *h, key_t key) \
{ \
*out = UINT_MAX; \
*out = UINT32_MAX; \
if (h->n_buckets) { \
uint32_t k, i, last, mask, step = 0; \
GIT_ASSERT((h)->flags); \