Skip to content

Commit

Permalink
fix arm64 windows compilation, upstream of python/cpython#111527
Browse files Browse the repository at this point in the history
  • Loading branch information
daanx committed May 18, 2024
1 parent 999b31f commit c48a212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/mimalloc/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ static inline uintptr_t mi_atomic_load_explicit(_Atomic(uintptr_t) const* p, mi_
#else
uintptr_t x = *p;
if (mo > mi_memory_order_relaxed) {
while (!mi_atomic_compare_exchange_weak_explicit(p, &x, x, mo, mi_memory_order_relaxed)) { /* nothing */ };
while (!mi_atomic_compare_exchange_weak_explicit((_Atomic(uintptr_t)*)p, &x, x, mo, mi_memory_order_relaxed)) { /* nothing */ };
}
return x;
#endif
Expand Down

0 comments on commit c48a212

Please sign in to comment.