]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1767: Patch v9.1.1765 was wrong v9.1.1767
authorChristian Brabandt <cb@256bit.org>
Wed, 17 Sep 2025 19:51:52 +0000 (19:51 +0000)
committerChristian Brabandt <cb@256bit.org>
Wed, 17 Sep 2025 19:51:52 +0000 (19:51 +0000)
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 <cb@256bit.org>
src/float.c
src/version.c

index fcdaaefa99dbaefd97a07119421fcb7ee9671ada..4c8e5fe10ad9cc21980ae58816bc9b8a2791a3df 100644 (file)
@@ -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;
 
index 8be4f5f84870bd6851ebe62be82daaeac1e5eeca..ea120ceaf0a2b15d07d88e8b950891226c58f15d 100644 (file)
@@ -724,6 +724,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1767,
 /**/
     1766,
 /**/