From d1d06b67eb4b67dfba8fccfb4f90e4c1fd37d752 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 10 Dec 2020 12:13:06 -0800 Subject: [PATCH] fix type warning (issue #337) --- src/os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os.c b/src/os.c index 22e736f7..e2c93d72 100644 --- a/src/os.c +++ b/src/os.c @@ -421,7 +421,7 @@ static void* mi_unix_mmap(void* addr, size_t size, size_t try_alignment, int pro #endif if (large_only) return p; if (p == NULL) { - mi_atomic_store_release(&large_page_try_ok, 10UL); // on error, don't try again for the next N allocations + mi_atomic_store_release(&large_page_try_ok, (uintptr_t)10); // on error, don't try again for the next N allocations } } }