diff options
Diffstat (limited to 'src/hashtable.c')
-rw-r--r-- | src/hashtable.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hashtable.c b/src/hashtable.c index e6651e38ee..ad1163c4e6 100644 --- a/src/hashtable.c +++ b/src/hashtable.c @@ -31,7 +31,7 @@ #if defined(FEAT_EVAL) || defined(FEAT_SYN_HL) || defined(PROTO) -#if 1 +#if 0 # define HT_DEBUG /* extra checks for table consistency */ #endif @@ -360,7 +360,7 @@ hash_may_resize(ht) newmask = newsize - 1; todo = ht->ht_used; for (olditem = oldarray; todo > 0; ++olditem) - if (olditem->hi_key != NULL && olditem->hi_key != HI_KEY_REMOVED) + if (!HASHITEM_EMPTY(olditem)) { /* * The algorithm to find the spot to add the item is identical to |