diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2025-06-05 17:09:52 +0900 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2025-06-05 17:09:52 +0900 |
| commit | 9e84a278a3bfee575fee71f64e47f0114a03c7e1 (patch) | |
| tree | 8493c7f47e2d165715a012babc783a500ac1cd05 /ruby_atomic.h | |
| parent | 8906d55cb58e0e4db5d17d6de25376c67ddd530f (diff) | |
Win: Cast of qualifier in `rbimpl_atomic_u64_load_relaxed`
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/13521
Diffstat (limited to 'ruby_atomic.h')
| -rw-r--r-- | ruby_atomic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ruby_atomic.h b/ruby_atomic.h index 2b4c16ba07..216e292571 100644 --- a/ruby_atomic.h +++ b/ruby_atomic.h @@ -43,7 +43,7 @@ rbimpl_atomic_u64_load_relaxed(const uint64_t *value) return __atomic_load_n(value, __ATOMIC_RELAXED); #elif defined(_WIN32) uint64_t val = *value; - return InterlockedCompareExchange64(value, val, val); + return InterlockedCompareExchange64(RBIMPL_CAST((uint64_t *)value), val, val); #elif defined(__sun) && defined(HAVE_ATOMIC_H) && (defined(_LP64) || defined(_I32LPx)) uint64_t val = *value; return atomic_cas_64(value, val, val); |
