mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +00:00
fixes compiler crash on syntax error (issue 4738)
This commit is contained in:
+3
-1
@@ -4773,7 +4773,9 @@ gb_internal gbString write_type_to_string(gbString str, Type *type, bool shortha
|
|||||||
|
|
||||||
case Type_BitSet:
|
case Type_BitSet:
|
||||||
str = gb_string_appendc(str, "bit_set[");
|
str = gb_string_appendc(str, "bit_set[");
|
||||||
if (is_type_enum(type->BitSet.elem)) {
|
if (type->BitSet.elem == nullptr) {
|
||||||
|
str = gb_string_appendc(str, "<unresolved>");
|
||||||
|
} else if (is_type_enum(type->BitSet.elem)) {
|
||||||
str = write_type_to_string(str, type->BitSet.elem);
|
str = write_type_to_string(str, type->BitSet.elem);
|
||||||
} else {
|
} else {
|
||||||
str = gb_string_append_fmt(str, "%lld", type->BitSet.lower);
|
str = gb_string_append_fmt(str, "%lld", type->BitSet.lower);
|
||||||
|
|||||||
Reference in New Issue
Block a user