]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1775: Wrong comparison in vim9type.c v9.0.1775
authorJohan Mattsson <39247600+mjunix@users.noreply.github.com>
Sun, 20 Aug 2023 19:07:29 +0000 (21:07 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 20 Aug 2023 19:07:29 +0000 (21:07 +0200)
Problem:  Wrong comparison in vim9type.c
Solution: Change condition to false

closes: #12047

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Johan Mattsson <39247600+mjunix@users.noreply.github.com>
src/version.c
src/vim9type.c

index dbe15f83b45d8f3f71eaf7e01bd18c5159ba3fca..00bcb340f889aa3db3c80035378c716ee57ef650 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1775,
 /**/
     1774,
 /**/
index 4c1693668a86866b5853e0e8a9301ab7a0a4ace0..d16186ccb2fcee04cb4e3a60040ca3381baf65f7 100644 (file)
@@ -426,7 +426,7 @@ typval2type_int(typval_T *tv, int copyID, garray_T *type_gap, int flags)
        if (tv->vval.v_number == VVAL_NONE)
            return &t_none;
        if (tv->vval.v_number == VVAL_TRUE
-               || tv->vval.v_number == VVAL_TRUE)
+               || tv->vval.v_number == VVAL_FALSE)
            return &t_bool;
        return &t_unknown;
     }