diff options
author | Johan Mattsson <39247600+mjunix@users.noreply.github.com> | 2023-08-20 21:07:29 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2023-08-20 21:07:29 +0200 |
commit | 20cd8699acf6dc1071ee1bf0686bccba7df2c57c (patch) | |
tree | c93dd8e4871ba16557211b710b6e807fb2c1d882 /src/vim9type.c | |
parent | 92997dda789ad8061841128cbc99b15ec0374411 (diff) |
patch 9.0.1775: Wrong comparison in vim9type.cv9.0.1775
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>
Diffstat (limited to 'src/vim9type.c')
-rw-r--r-- | src/vim9type.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vim9type.c b/src/vim9type.c index 4c1693668a..d16186ccb2 100644 --- a/src/vim9type.c +++ b/src/vim9type.c @@ -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; } |