eval: use VAR_UNLOCKED enum, not the direct value

This commit is contained in:
Jan Edmund Lazo
2020-11-21 15:33:33 -05:00
parent ce3668ed39
commit 297567780e
2 changed files with 12 additions and 11 deletions

View File

@@ -851,7 +851,7 @@ void call_user_func(ufunc_T *fp, int argcount, typval_T *argvars,
v->di_flags = DI_FLAGS_RO | DI_FLAGS_FIX;
tv_dict_add(&fc->l_vars, v);
v->di_tv.v_type = VAR_DICT;
v->di_tv.v_lock = 0;
v->di_tv.v_lock = VAR_UNLOCKED;
v->di_tv.vval.v_dict = selfdict;
++selfdict->dv_refcount;
}