patch 9.1.1767: Patch v9.1.1765 was wrong
Commit:
https://github.com/vim/vim/commit/934e7b765c90dd440462fbbf009c67ed5d6b9224
Author: Christian Brabandt <
c...@256bit.org>
Date: Wed Sep 17 19:51:52 2025 +0000
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 19fa46a469743653a16a48c4222482d9f33e30a2.
closes: #18317
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/src/float.c b/src/float.c
index fcdaaefa9..4c8e5fe10 100644
--- a/src/float.c
+++ b/src/float.c
@@ -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;
diff --git a/src/version.c b/src/version.c
index 8be4f5f84..ea120ceaf 100644
--- a/src/version.c
+++ b/src/version.c
@@ -724,6 +724,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1767,
/**/
1766,
/**/