From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 3 Jun 2025 08:03:36 +0000 (+0200) Subject: [3.14] gh-134875: Fix mimallc build error for the old compilers (gh-134994) (gh-135053) X-Git-Tag: v3.14.0b3~103 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=78fd7ce3d2f14a00b50dced680baf2e3b805dc8b;p=thirdparty%2FPython%2Fcpython.git [3.14] gh-134875: Fix mimallc build error for the old compilers (gh-134994) (gh-135053) gh-134875: Fix mimallc build error for the old compilers (gh-134994) (cherry picked from commit b525e31b7fc50e7a498f8b9b16437cb7b9656f6f) Co-authored-by: Donghee Na --- diff --git a/Include/internal/mimalloc/mimalloc/internal.h b/Include/internal/mimalloc/mimalloc/internal.h index 71b7ea702d6c..a7daa3a40a4c 100644 --- a/Include/internal/mimalloc/mimalloc/internal.h +++ b/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 mi_track_mem_defined(block,sizeof(mi_block_t)); mi_block_t* next; #ifdef MI_ENCODE_FREELIST - 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); #else MI_UNUSED(keys); MI_UNUSED(null); - next = (mi_block_t*)mi_atomic_load_relaxed(&block->next); + next = (mi_block_t*)mi_atomic_load_relaxed((_Atomic(mi_encoded_t)*)&block->next); #endif mi_track_mem_noaccess(block,sizeof(mi_block_t)); return next;