fix compiler error on older macOS due to const atomic (issue #540)
This commit is contained in:
parent
43e5eb8677
commit
3cf2b629f9
@ -478,7 +478,7 @@ static inline mi_segment_t* mi_checked_ptr_segment(const void* p, const char* ms
|
|||||||
// Free a block
|
// Free a block
|
||||||
void mi_free(void* p) mi_attr_noexcept
|
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;
|
if (mi_unlikely(segment == NULL)) return;
|
||||||
|
|
||||||
mi_threadid_t tid = _mi_thread_id();
|
mi_threadid_t tid = _mi_thread_id();
|
||||||
|
Loading…
Reference in New Issue
Block a user