Skip to content

Commit 20cd869

Browse files
j-mattssonchrisbra
authored andcommitted
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 <[email protected]> Co-authored-by: Johan Mattsson <[email protected]>
1 parent 92997dd commit 20cd869

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,8 @@ static char *(features[]) =
695695

696696
static int included_patches[] =
697697
{ /* Add new patch number below this line */
698+
/**/
699+
1775,
698700
/**/
699701
1774,
700702
/**/

src/vim9type.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ typval2type_int(typval_T *tv, int copyID, garray_T *type_gap, int flags)
426426
if (tv->vval.v_number == VVAL_NONE)
427427
return &t_none;
428428
if (tv->vval.v_number == VVAL_TRUE
429-
|| tv->vval.v_number == VVAL_TRUE)
429+
|| tv->vval.v_number == VVAL_FALSE)
430430
return &t_bool;
431431
return &t_unknown;
432432
}

0 commit comments

Comments
 (0)