1
0
forked from aniani/vim

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>
This commit is contained in:
Johan Mattsson 2023-08-20 21:07:29 +02:00 committed by Christian Brabandt
parent 92997dda78
commit 20cd8699ac
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
2 changed files with 3 additions and 1 deletions

View File

@ -695,6 +695,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1775,
/**/
1774,
/**/

View 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;
}