There was an error while loading. Please reload this page.
1 parent 0ac9e17 commit b525e31Copy full SHA for b525e31
1 file changed
Include/internal/mimalloc/mimalloc/internal.h
@@ -634,10 +634,10 @@ static inline mi_block_t* mi_block_nextx( const void* null, const mi_block_t* bl
634
mi_track_mem_defined(block,sizeof(mi_block_t));
635
mi_block_t* next;
636
#ifdef MI_ENCODE_FREELIST
637
- next = (mi_block_t*)mi_ptr_decode(null, mi_atomic_load_relaxed(&block->next), keys);
+ next = (mi_block_t*)mi_ptr_decode(null, mi_atomic_load_relaxed((_Atomic(mi_encoded_t)*)&block->next), keys);
638
#else
639
MI_UNUSED(keys); MI_UNUSED(null);
640
- next = (mi_block_t*)mi_atomic_load_relaxed(&block->next);
+ next = (mi_block_t*)mi_atomic_load_relaxed((_Atomic(mi_encoded_t)*)&block->next);
641
#endif
642
mi_track_mem_noaccess(block,sizeof(mi_block_t));
643
return next;
0 commit comments