R44946 introduces compile error in Solaris

Issue #9530 has been updated by Naohisa G…

補足: 上記の122行目は、r45026のruby_atomic.hにおける行番号です。

Backport #9530: r44946 introduces compile error in Solaris

  • Author: Naohisa G.
  • Status: Open
  • Priority: Normal
  • Assignee:

r44946 にて、ruby_atomic.h


@@ -80,7 +81,7 @@

define ATOMIC_SIZE_INC(var) atomic_inc_ulong(&(var))

define ATOMIC_SIZE_DEC(var) atomic_dec_ulong(&(var))

define ATOMIC_SIZE_EXCHANGE(var, val) atomic_swap_ulong(&(var),

-# else
+# define ATOMIC_SIZE_CAS(var, oldval, val) atomic_cas_ulong(&(var),
(oldval), (# else

define ATOMIC_SIZE_ADD(var, val) atomic_add_int(&(var), (val))

define ATOMIC_SIZE_SUB(var, val) atomic_add_int(&(var), -(val))

define ATOMIC_SIZE_INC(var) atomic_inc_uint(&(var))

明らかに #else の前後が何か変です。行末が欠けて、かつ、次の行がくっついているように見えます。

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs