Fix build issue related to type conversation

Signed-off-by: Timur Valeev <valeev.timur@huawei.com>
This commit is contained in:
Timur Valeev
2022-07-25 17:05:01 +03:00
parent 671dbe6259
commit 0fdfd61b98
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -21,7 +21,6 @@ config("libmimalloc_config") {
"-fomit-frame-pointer",
"-frounding-math",
"-pipe",
"-DMI_DEBUG=0",
"-Wno-unsupported-floating-point-opt",
"-Wno-bitwise-op-parentheses",
"-DMI_DEBUG=0",
@@ -64,6 +63,7 @@ ohos_static_library("libmimalloc_static") {
]
defines = [
"MI_MALLOC_OVERRIDE",
"MI_TLS_PTHREAD",
"__OHOS__",
"mimalloc_EXPORTS"
+1 -1
View File
@@ -304,7 +304,7 @@ static mi_decl_thread bool recurse = false;
static mi_decl_noinline bool mi_recurse_enter_prim(void) {
#if defined(MI_TLS_PTHREAD)
void* key_value = pthread_getspecific(recurse_key);
if ((int)key_value == 1) return false;
if (key_value == (void*)1) return false;
pthread_setspecific(recurse_key, (void*)(1));
#else
if (recurse) return false;