We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6de40bd commit f9fefdcCopy full SHA for f9fefdc
khash.h
@@ -175,7 +175,7 @@ static const double __ac_HASH_UPPER = 0.77;
175
SCOPE khint_t kh_put_##name(kh_##name##_t *h, khkey_t key, int *ret) \
176
{ \
177
khint_t x; \
178
- if (h->n_occupied >= h->upper_bound) { /* update the hash table */ \
+ if (!h->keys || !h->flags || h->n_occupied >= h->upper_bound) { /* update the hash table */ \
179
if (h->n_buckets > (h->size<<1)) { \
180
kh_resize_##name(h, h->n_buckets - 1); /* clear "deleted" elements */ \
181
} else { \
0 commit comments