Skip to content

Commit c48a212

Browse files
committed
fix arm64 windows compilation, upstream of python/cpython#111527
1 parent 999b31f commit c48a212

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/mimalloc/atomic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ static inline uintptr_t mi_atomic_load_explicit(_Atomic(uintptr_t) const* p, mi_
201201
#else
202202
uintptr_t x = *p;
203203
if (mo > mi_memory_order_relaxed) {
204-
while (!mi_atomic_compare_exchange_weak_explicit(p, &x, x, mo, mi_memory_order_relaxed)) { /* nothing */ };
204+
while (!mi_atomic_compare_exchange_weak_explicit((_Atomic(uintptr_t)*)p, &x, x, mo, mi_memory_order_relaxed)) { /* nothing */ };
205205
}
206206
return x;
207207
#endif

0 commit comments

Comments
 (0)