diff options
Diffstat (limited to 'src/evalvars.c')
-rw-r--r-- | src/evalvars.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/evalvars.c b/src/evalvars.c index b2343c0a2b..b123542872 100644 --- a/src/evalvars.c +++ b/src/evalvars.c @@ -2317,7 +2317,7 @@ item_lock(typval_T *tv, int deep, int lock, int check_refcount) { // recursive: lock/unlock the items the List contains todo = (int)d->dv_hashtab.ht_used; - for (hi = d->dv_hashtab.ht_array; todo > 0; ++hi) + FOR_ALL_HASHTAB_ITEMS(&d->dv_hashtab, hi, todo) { if (!HASHITEM_EMPTY(hi)) { @@ -3571,7 +3571,7 @@ vars_clear_ext(hashtab_T *ht, int free_val) hash_lock(ht); todo = (int)ht->ht_used; - for (hi = ht->ht_array; todo > 0; ++hi) + FOR_ALL_HASHTAB_ITEMS(ht, hi, todo) { if (!HASHITEM_EMPTY(hi)) { |