From eb9a4f9f70416e48715045d14f55f05208f29a77 Mon Sep 17 00:00:00 2001 From: Kouji Matsui Date: Sat, 6 Apr 2019 18:06:04 +0900 Subject: [PATCH] Fixed release build minor bugs. --- IL2C.Runtime/src/System/String.c | 2 +- IL2C.Runtime/src/System/Threading/Thread.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/IL2C.Runtime/src/System/String.c b/IL2C.Runtime/src/System/String.c index f243c469..7ea77f85 100644 --- a/IL2C.Runtime/src/System/String.c +++ b/IL2C.Runtime/src/System/String.c @@ -45,7 +45,7 @@ static System_String* new_string_internal__(uintptr_t byteSize) il2c_typeof(System_String), bodySize, pFile, line); #else - System_String* pString = il2c_get_uninitialized_object_internal__( + IL2C_REF_HEADER* pHeader = il2c_get_uninitialized_object_internal__( il2c_typeof(System_String), bodySize); #endif diff --git a/IL2C.Runtime/src/System/Threading/Thread.c b/IL2C.Runtime/src/System/Threading/Thread.c index 88c1db4e..07c1b64d 100644 --- a/IL2C.Runtime/src/System/Threading/Thread.c +++ b/IL2C.Runtime/src/System/Threading/Thread.c @@ -200,7 +200,7 @@ void System_Threading_Thread_Start(System_Threading_Thread* this__) intptr_t rawHandle = il2c_create_thread__( System_Threading_Thread_InternalEntryPoint, this__); - // TODO: OutOfMemoryException + // TODO: OutOfMemoryException (have to unlink from root) il2c_assert(rawHandle >= 0); // It's naive for passing handle if startup with suspending not implemented. (pthread/FreeRTOS) @@ -228,7 +228,7 @@ void System_Threading_Thread_Start_2(System_Threading_Thread* this__, System_Obj intptr_t rawHandle = il2c_create_thread__( System_Threading_Thread_InternalEntryPointWithParameter, this__); - // TODO: OutOfMemoryException + // TODO: OutOfMemoryException (have to unlink from root) il2c_assert(rawHandle >= 0); // It's naive for passing handle if startup with suspending not implemented. (pthread/FreeRTOS)