Skip to content

Commit 3cf2b62

Browse files
committed
fix compiler error on older macOS due to const atomic (issue #540)
1 parent 43e5eb8 commit 3cf2b62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/alloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ static inline mi_segment_t* mi_checked_ptr_segment(const void* p, const char* ms
478478
// Free a block
479479
void mi_free(void* p) mi_attr_noexcept
480480
{
481-
const mi_segment_t* const segment = mi_checked_ptr_segment(p,"mi_free");
481+
mi_segment_t* const segment = mi_checked_ptr_segment(p,"mi_free");
482482
if (mi_unlikely(segment == NULL)) return;
483483

484484
mi_threadid_t tid = _mi_thread_id();

0 commit comments

Comments
 (0)