summaryrefslogtreecommitdiffstats
path: root/src/scriptfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/scriptfile.c')
-rw-r--r--src/scriptfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scriptfile.c b/src/scriptfile.c
index 008c7b3d41..acc1deb58d 100644
--- a/src/scriptfile.c
+++ b/src/scriptfile.c
@@ -1672,7 +1672,7 @@ do_source_ext(
// is encountered without the "noclear" argument.
ht = &SCRIPT_VARS(sid);
todo = (int)ht->ht_used;
- for (hi = ht->ht_array; todo > 0; ++hi)
+ FOR_ALL_HASHTAB_ITEMS(ht, hi, todo)
if (!HASHITEM_EMPTY(hi))
{
--todo;
@@ -2063,7 +2063,7 @@ get_script_local_funcs(scid_T sid)
// looking for functions with script ID 'sid'.
functbl = func_tbl_get();
todo = functbl->ht_used;
- for (hi = functbl->ht_array; todo > 0; ++hi)
+ FOR_ALL_HASHTAB_ITEMS(functbl, hi, todo)
{
ufunc_T *fp;