Bläddra i källkod

Fixed "Tiny" test accidental size increase

Brian Fiete 3 månader sedan
förälder
incheckning
3263d1a849
1 ändrade filer med 4 tillägg och 0 borttagningar
  1. 4 0
      BeefLibs/corlib/src/Runtime.bf

+ 4 - 0
BeefLibs/corlib/src/Runtime.bf

@@ -153,12 +153,16 @@ namespace System
 
 
 			static void* ClassVData_GetTypeData(ClassVData* classVData)
 			static void* ClassVData_GetTypeData(ClassVData* classVData)
 			{
 			{
+#if BF_DBG_RUNTIME
 #if BF_32_BIT
 #if BF_32_BIT
 				Type type = Type.[Friend]GetType_(classVData.mType2);
 				Type type = Type.[Friend]GetType_(classVData.mType2);
 #else
 #else
 				Type type = Type.[Friend]GetType_((.)(classVData.mType >> 32));
 				Type type = Type.[Friend]GetType_((.)(classVData.mType >> 32));
 #endif
 #endif
 				return &type.[Friend]mSize;
 				return &type.[Friend]mSize;
+#else
+				return null;
+#endif
 			}
 			}
 
 
 			static Type Object_GetType(Object obj)
 			static Type Object_GetType(Object obj)