ruby-changes:39497
From: nobu <ko1@a...>
Date: Fri, 14 Aug 2015 19:38:44 +0900 (JST)
Subject: [ruby-changes:39497] nobu:r51578 (trunk): thread_pthread.c: suppress a warning
nobu 2015-08-14 19:38:29 +0900 (Fri, 14 Aug 2015) New Revision: 51578 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51578 Log: thread_pthread.c: suppress a warning * thread_pthread.c (native_stop_timer_thread): explicit type of old value to suppress a pointer-sign warning. Modified files: trunk/thread_pthread.c Index: thread_pthread.c =================================================================== --- thread_pthread.c (revision 51577) +++ thread_pthread.c (revision 51578) @@ -1660,7 +1660,7 @@ native_stop_timer_thread(void) https://github.com/ruby/ruby/blob/trunk/thread_pthread.c#L1660 * captured and in the middle of a write while we are running, * so wait for that to finish: */ - while (ATOMIC_CAS(timer_thread_pipe.writing, 0, 0)) { + while (ATOMIC_CAS(timer_thread_pipe.writing, (rb_atomic_t)0, 0)) { native_thread_yield(); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/