diff options
author | Nobuyoshi Nakada <[email protected]> | 2024-06-06 10:32:01 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2024-06-07 10:42:41 +0900 |
commit | 0396050f5a927f6f32c9eebd8549d38c8255c14a (patch) | |
tree | a25a94288a8813220e5cfcc16380956ae3678a66 /include/ruby | |
parent | 029d92b8988d26955d0622f0cbb8ef3213200749 (diff) |
Cast `RUBY_ATOMIC_PTR_CAS` arguments
As well as `RUBY_ATOMIC_PTR_EXCHANGE` and `RUBY_ATOMIC_PTR_LOAD`.
Diffstat (limited to 'include/ruby')
-rw-r--r-- | include/ruby/atomic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/atomic.h b/include/ruby/atomic.h index 043a6a9945..d786df20c9 100644 --- a/include/ruby/atomic.h +++ b/include/ruby/atomic.h @@ -311,7 +311,7 @@ typedef unsigned int rb_atomic_t; * @retval otherwise Something else is at `var`; not updated. */ #define RUBY_ATOMIC_PTR_CAS(var, oldval, newval) \ - RBIMPL_CAST(rbimpl_atomic_ptr_cas((void **)&(var), (oldval), (newval))) + RBIMPL_CAST(rbimpl_atomic_ptr_cas((void **)&(var), (void *)(oldval), (void *)(newval))) /** * Identical to #RUBY_ATOMIC_EXCHANGE, except it expects its arguments are |