mirror of
https://github.com/openharmony/third_party_mimalloc.git
synced 2026-07-18 18:14:44 -04:00
Fix build issue related to type conversation
Signed-off-by: Timur Valeev <valeev.timur@huawei.com>
This commit is contained in:
@@ -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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user