This commit is contained in:
gingerBill
2022-08-24 12:18:42 +01:00
parent 8c1dfabb6b
commit 2908923db9
3 changed files with 6 additions and 5 deletions
+2 -1
View File
@@ -4523,7 +4523,8 @@ bool check_builtin_procedure(CheckerContext *c, Operand *operand, Ast *call, i32
if (x.mode != Addressing_Invalid) {
convert_to_typed(c, &x, t_uintptr);
}
if (!is_type_uintptr(operand->type)) {
convert_to_typed(c, &x, t_uintptr);
if (!is_type_uintptr(x.type)) {
gbString t = type_to_string(x.type);
error(x.expr, "Argument %td must be of type 'uintptr', got %s", i, t);
gb_string_free(t);