Fix default parameter assignment checking

This commit is contained in:
gingerBill
2018-12-28 11:20:31 +00:00
parent 7c982b6e10
commit 775f1e2c95
3 changed files with 6 additions and 3 deletions
+2 -2
View File
@@ -1042,7 +1042,7 @@ bool is_type_integer_endian_big(Type *t) {
} else if (t->kind == Type_BitSet) {
return is_type_integer_endian_big(bit_set_to_int(t));
} else {
GB_PANIC("Unsupported type: %s", type_to_string);
GB_PANIC("Unsupported type: %s", type_to_string(t));
}
return build_context.endian_kind == TargetEndian_Big;
}
@@ -1059,7 +1059,7 @@ bool is_type_integer_endian_little(Type *t) {
} else if (t->kind == Type_BitSet) {
return is_type_integer_endian_little(bit_set_to_int(t));
} else {
GB_PANIC("Unsupported type: %s", type_to_string);
GB_PANIC("Unsupported type: %s", type_to_string(t));
}
return build_context.endian_kind == TargetEndian_Little;
}