small fixes for macOS

This commit is contained in:
Daan 2024-12-09 15:16:36 -08:00
parent d5ed0cc71e
commit 351cb0c740
3 changed files with 18 additions and 14 deletions

View file

@ -459,7 +459,7 @@ static inline mi_page_t* _mi_checked_ptr_page(const void* p) {
}
static inline mi_page_t* _mi_ptr_page(const void* p) {
#if MI_DEBUG
#if MI_DEBUG || defined(__APPLE__)
return _mi_checked_ptr_page(p);
#else
return _mi_ptr_page_ex(p,NULL);