eval: assert VAR_LIST branch in filter_map()

This commit is contained in:
Jan Edmund Lazo
2019-06-23 19:10:59 -04:00
parent 4653b5943f
commit fa3db26f10

View File

@@ -8913,7 +8913,7 @@ static void filter_map(typval_T *argvars, typval_T *rettv, int map)
} }
hash_unlock(ht); hash_unlock(ht);
} else { } else {
// argvars[0].v_type == VAR_LIST assert(argvars[0].v_type == VAR_LIST);
vimvars[VV_KEY].vv_type = VAR_NUMBER; vimvars[VV_KEY].vv_type = VAR_NUMBER;
for (listitem_T *li = tv_list_first(l); li != NULL;) { for (listitem_T *li = tv_list_first(l); li != NULL;) {