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
2 changed files with 3 additions and 1 deletions

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