summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Mattsson <39247600+mjunix@users.noreply.github.com>2023-08-20 21:07:29 +0200
committerChristian Brabandt <cb@256bit.org>2023-08-20 21:07:29 +0200
commit20cd8699acf6dc1071ee1bf0686bccba7df2c57c (patch)
treec93dd8e4871ba16557211b710b6e807fb2c1d882
parent92997dda789ad8061841128cbc99b15ec0374411 (diff)
patch 9.0.1775: Wrong comparison in vim9type.cv9.0.1775
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>
-rw-r--r--src/version.c2
-rw-r--r--src/vim9type.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/version.c b/src/version.c
index dbe15f83b4..00bcb340f8 100644
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1775,
+/**/
1774,
/**/
1773,
diff --git a/src/vim9type.c b/src/vim9type.c
index 4c1693668a..d16186ccb2 100644
--- a/src/vim9type.c
+++ b/src/vim9type.c
@@ -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;
}