From 3cf2b629f936c89908b3b9ea450eb8f6203e7150 Mon Sep 17 00:00:00 2001 From: Daan Date: Mon, 31 Jan 2022 12:47:50 -0800 Subject: [PATCH] fix compiler error on older macOS due to const atomic (issue #540) --- src/alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/alloc.c b/src/alloc.c index f8923a4e..cd4afa1e 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -478,7 +478,7 @@ static inline mi_segment_t* mi_checked_ptr_segment(const void* p, const char* ms // Free a block void mi_free(void* p) mi_attr_noexcept { - const mi_segment_t* const segment = mi_checked_ptr_segment(p,"mi_free"); + mi_segment_t* const segment = mi_checked_ptr_segment(p,"mi_free"); if (mi_unlikely(segment == NULL)) return; mi_threadid_t tid = _mi_thread_id();