Fix compilation on Android

This commit is contained in:
jhmaster 2023-04-10 08:05:33 -03:00 committed by GitHub
parent 5ac9e36ed6
commit 08874b70aa
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23

View file

@ -281,7 +281,7 @@ typedef _Atomic(uintptr_t) mi_atomic_once_t;
static inline bool mi_atomic_once( mi_atomic_once_t* once ) {
if (mi_atomic_load_relaxed(once) != 0) return false; // quick test
uintptr_t expected = 0;
return mi_atomic_cas_strong_acq_rel(once, &expected, 1); // try to set to 1
return mi_atomic_cas_strong_acq_rel(once, &expected, 1UL); // try to set to 1
}
// Yield