From 775f1e2c959e0db488615a44d30be3a59d371b08 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Fri, 28 Dec 2018 11:20:31 +0000 Subject: Fix default parameter assignment checking --- src/types.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/types.cpp') 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; } -- cgit v1.2.3