aboutsummaryrefslogtreecommitdiff
path: root/src/types.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-12-28 11:20:31 +0000
committergingerBill <bill@gingerbill.org>2018-12-28 11:20:31 +0000
commit775f1e2c959e0db488615a44d30be3a59d371b08 (patch)
treead58fbcd772d5b0555aa0459dc4956c28fcc551b /src/types.cpp
parent7c982b6e109d9e9b4b99c728eea0a3aa5b0849d7 (diff)
Fix default parameter assignment checking
Diffstat (limited to 'src/types.cpp')
-rw-r--r--src/types.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/types.cpp b/src/types.cpp
index 839c237c5..e6010b1e5 100644
--- a/src/types.cpp
+++ b/src/types.cpp
@@ -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;
}