summaryrefslogtreecommitdiff
path: root/ruby_atomic.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-07 06:55:01 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-07 06:55:01 +0000
commit22fa19d1dce664814964d55addc3d0181ee863a9 (patch)
tree2137588b1d8da38a3893b44d907b9640b0bb12b5 /ruby_atomic.h
parent09421c5da1196fde3a8d623f0db02fb739545023 (diff)
downloadruby-22fa19d1dce664814964d55addc3d0181ee863a9.tar.gz
ruby_atomic.h: fix typo
* ruby_atomic.h (ATOMIC_VALUE_CAS): fix typo. TODO: make arguments of all CAS macros consistent. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby_atomic.h')
-rw-r--r--ruby_atomic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ruby_atomic.h b/ruby_atomic.h
index cd2fbcea50..57368a7448 100644
--- a/ruby_atomic.h
+++ b/ruby_atomic.h
@@ -168,7 +168,7 @@ ruby_atomic_size_exchange(size_t *ptr, size_t val)
# define ATOMIC_VALUE_EXCHANGE(var, val) ATOMIC_EXCHANGE(var, val)
# endif
# ifndef ATOMIC_VALUE_CAS
-# define ATOMIC_VALUE_CAS(var, oldval, val) ATOMIC_CAS(var, oldval, newval)
+# define ATOMIC_VALUE_CAS(var, oldval, val) ATOMIC_CAS(var, oldval, val)
# endif
#endif