mirror of
https://github.com/vim/vim.git
synced 2025-10-13 06:54:15 -04:00
patch 8.2.1600: Vim9: cannot use "true" with deepcopy()
Problem: Vim9: cannot use "true" with deepcopy(). Solution: Use tv_get_bool_chk(). (closes #6867)
This commit is contained in:
@@ -1975,7 +1975,7 @@ f_deepcopy(typval_T *argvars, typval_T *rettv)
|
||||
int copyID;
|
||||
|
||||
if (argvars[1].v_type != VAR_UNKNOWN)
|
||||
noref = (int)tv_get_number_chk(&argvars[1], NULL);
|
||||
noref = (int)tv_get_bool_chk(&argvars[1], NULL);
|
||||
if (noref < 0 || noref > 1)
|
||||
emsg(_(e_invarg));
|
||||
else
|
||||
|
Reference in New Issue
Block a user