Fix len of type bug

This commit is contained in:
gingerBill
2020-01-11 20:26:36 +00:00
parent 47f9876b36
commit 11c7b6a2e4
2 changed files with 7 additions and 2 deletions

View File

@@ -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);