mirror of
https://github.com/vim/vim.git
synced 2025-10-24 08:54:47 -04:00
patch 9.1.1767: Patch v9.1.1765 was wrong
Problem: Patch v9.1.1765 was wrong
Solution: Roll back the change, it's correct to have call_func()
initialize the type, so that not each function has to
do this on its own.
This reverts commit 19fa46a469.
closes: #18317
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -345,9 +345,6 @@ f_fmod(typval_T *argvars, typval_T *rettv)
|
||||
void
|
||||
f_isinf(typval_T *argvars, typval_T *rettv)
|
||||
{
|
||||
rettv->v_type = VAR_NUMBER;
|
||||
rettv->vval.v_number = 0;
|
||||
|
||||
if (in_vim9script() && check_for_float_or_nr_arg(argvars, 0) == FAIL)
|
||||
return;
|
||||
|
||||
@@ -361,9 +358,6 @@ f_isinf(typval_T *argvars, typval_T *rettv)
|
||||
void
|
||||
f_isnan(typval_T *argvars, typval_T *rettv)
|
||||
{
|
||||
rettv->v_type = VAR_NUMBER;
|
||||
rettv->vval.v_number = 0;
|
||||
|
||||
if (in_vim9script() && check_for_float_or_nr_arg(argvars, 0) == FAIL)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user