1
0
forked from aniani/vim

patch 7.4.1273

Problem:    assert_false(v:false) still fails.
Solution:   Fix the typo.
This commit is contained in:
Bram Moolenaar
2016-02-07 00:00:35 +01:00
parent 1701481c53
commit c5f98ee987
2 changed files with 3 additions and 1 deletions

View File

@@ -9217,7 +9217,7 @@ assert_bool(typval_T *argvars, int isTrue)
garray_T ga;
if (argvars[0].v_type == VAR_SPECIAL
&& argvars[0].vval.v_number == (isTrue ? VVAL_TRUE : VV_FALSE))
&& argvars[0].vval.v_number == (isTrue ? VVAL_TRUE : VVAL_FALSE))
return;
if (argvars[0].v_type != VAR_NUMBER
|| (get_tv_number_chk(&argvars[0], &error) == 0) == isTrue