thread_pthread.c: suppress a warning

* thread_pthread.c (native_stop_timer_thread): explicit type of
  old value to suppress a pointer-sign warning.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-08-14 10:38:29 +00:00
parent 260a7d2c83
commit 8b5f22c1b4

View File

@ -1660,7 +1660,7 @@ native_stop_timer_thread(void)
* captured and in the middle of a write while we are running, * captured and in the middle of a write while we are running,
* so wait for that to finish: * 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(); native_thread_yield();
} }