patch 9.0.1775: Wrong comparison in vim9type.c
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>
diff --git a/src/version.c b/src/version.c
index dbe15f8..00bcb34 100644
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@
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 4c16936..d16186c 100644
--- a/src/vim9type.c
+++ b/src/vim9type.c
@@ -426,7 +426,7 @@
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;
}