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:
committed by
Christian Brabandt
parent
92997dda78
commit
20cd8699ac
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user