diff options
author | Maria Matejka <mq@ucw.cz> | 2019-03-23 13:32:14 +0100 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2019-03-23 13:32:14 +0100 |
commit | fe503c7c0632b385222c92b85d04526fdf36a1a3 (patch) | |
tree | 99ced640980468182dc06a53661946d533aeeb8c /filter/f-inst.c | |
parent | 7078aa63ae498b55c729df4a075eb28019917e81 (diff) |
Filter: fixed error-checking bug in !~ operator
Diffstat (limited to 'filter/f-inst.c')
-rw-r--r-- | filter/f-inst.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/f-inst.c b/filter/f-inst.c index 3fea16c4..d6c292b6 100644 --- a/filter/f-inst.c +++ b/filter/f-inst.c @@ -233,7 +233,7 @@ ARG_ANY(1); ARG_ANY(2); int i = val_in_range(&v1, &v2); - if (res.val.i == F_CMP_ERROR) + if (i == F_CMP_ERROR) runtime( "!~ applied on unknown type pair" ); RESULT(T_BOOL, i, !i); } |