diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2020-01-07 01:24:30 +0100 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2020-01-07 01:24:30 +0100 |
commit | ef8c45749c82e246d477ea4d7f749668a9c7e9ee (patch) | |
tree | eee628e31aed68a622dff74017314a9c3fd07ca0 /filter/f-inst.c | |
parent | cc75b3e1dc4a7440479d6f4d73e7e1b9ba65332f (diff) |
Filter: Fix typecheck for AND/OR.
Do not apply dynamic type check for second argument of AND/OR, as it is
not evaluated immediately like regular argument would be.
Thanks to Mikael for the bugreport.
Diffstat (limited to 'filter/f-inst.c')
-rw-r--r-- | filter/f-inst.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/filter/f-inst.c b/filter/f-inst.c index 51a35350..4b3c627b 100644 --- a/filter/f-inst.c +++ b/filter/f-inst.c @@ -226,7 +226,7 @@ } INST(FI_AND, 1, 1) { ARG(1,T_BOOL); - ARG_TYPE(2,T_BOOL); + ARG_TYPE_STATIC(2,T_BOOL); RESULT_TYPE(T_BOOL); if (v1.val.i) @@ -236,7 +236,7 @@ } INST(FI_OR, 1, 1) { ARG(1,T_BOOL); - ARG_TYPE(2,T_BOOL); + ARG_TYPE_STATIC(2,T_BOOL); RESULT_TYPE(T_BOOL); if (!v1.val.i) |