浏览代码

add return

Laytan Laats 2 月之前
父节点
当前提交
3db8972c99
共有 1 个文件被更改,包括 1 次插入0 次删除
  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));
 	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) {
 gb_internal gbString write_type_to_string(gbString str, Type *type, bool shorthand=false, bool allow_polymorphic=false) {