aboutsummaryrefslogtreecommitdiff
path: root/src/types.cpp
diff options
context:
space:
mode:
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;
}