summaryrefslogtreecommitdiffstats
path: root/src/vim9type.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vim9type.c')
-rw-r--r--src/vim9type.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vim9type.c b/src/vim9type.c
index 1a7b0a6761..95252dbafe 100644
--- a/src/vim9type.c
+++ b/src/vim9type.c
@@ -213,7 +213,7 @@ set_tv_type(typval_T *tv, type_T *type)
hashitem_T *hi;
dictitem_T *di;
- for (hi = d->dv_hashtab.ht_array; todo > 0; ++hi)
+ FOR_ALL_HASHTAB_ITEMS(&d->dv_hashtab, hi, todo)
{
if (!HASHITEM_EMPTY(hi))
{