Browse Source

add return

Laytan Laats 2 months ago
parent
commit
3db8972c99
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/types.cpp

+ 1 - 0
src/types.cpp

@@ -4688,6 +4688,7 @@ gb_internal Type *type_internal_index(Type *t, isize index) {
 	};
 
 	GB_PANIC("Unhandled type %s", type_to_string(bt));
+	return nullptr;
 };
 
 gb_internal gbString write_type_to_string(gbString str, Type *type, bool shorthand=false, bool allow_polymorphic=false) {