summaryrefslogtreecommitdiffstats
path: root/src/vim9type.c
diff options
context:
space:
mode:
authorYegappan Lakshmanan <yegappan@yahoo.com>2024-05-02 13:02:36 +0200
committerChristian Brabandt <cb@256bit.org>2024-05-02 13:02:36 +0200
commitda9d345b3dd8fe67c0c7341e426b09bec8c40abd (patch)
tree9c173838b8c55999619ddf3073e49e149562cb10 /src/vim9type.c
parent3ca2ae180ae26d0aa29b33ef158f79be811d6be8 (diff)
patch 9.1.0387: Vim9: null value tests not sufficientv9.1.0387
Problem: Vim9: null value tests not sufficient Solution: Add a more comprehensive test for null values (Yegappan Lakshmanan) closes: #14701 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/vim9type.c')
-rw-r--r--src/vim9type.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vim9type.c b/src/vim9type.c
index ab7efce7a0..517dee2805 100644
--- a/src/vim9type.c
+++ b/src/vim9type.c
@@ -2093,7 +2093,7 @@ check_typval_is_value(typval_T *tv)
class_T *cl = tv->vval.v_class;
char_u *class_name = (cl == NULL) ? (char_u *)""
: cl->class_name;
- if (cl && IS_ENUM(cl))
+ if (cl != NULL && IS_ENUM(cl))
semsg(_(e_using_enum_as_value_str), class_name);
else
semsg(_(e_using_class_as_value_str), class_name);