diff options
| author | gingerBill <bill@gingerbill.org> | 2020-01-11 20:26:36 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-01-11 20:26:36 +0000 |
| commit | 11c7b6a2e495ff300ea2b200d531dafae3486f90 (patch) | |
| tree | 2e3bfa3ba273fc1d775f62923bae2304200a85f1 /src/check_expr.cpp | |
| parent | 47f9876b3649a528e34366423879bd30a809d01d (diff) | |
Fix len of type bug
Diffstat (limited to 'src/check_expr.cpp')
| -rw-r--r-- | src/check_expr.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp index ac6f22e6d..f23c47a2e 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -4021,6 +4021,9 @@ bool check_builtin_procedure(CheckerContext *c, Operand *operand, Ast *call, i32 mode = Addressing_Value; } } + if (operand->mode == Addressing_Type && mode != Addressing_Constant) { + mode = Addressing_Invalid; + } if (mode == Addressing_Invalid) { gbString t = type_to_string(operand->type); |