Fix len of type bug

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

No files matched your search

+3
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);