aboutsummaryrefslogtreecommitdiffstats
path: root/thread_pthread.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-14 10:38:29 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-14 10:38:29 +0000
commit6696da856843e4379d4f10b9ea3fdf3130f86804 (patch)
tree2f361170d28f750041673dea544259ef76350a3f /thread_pthread.c
parente04c402dfa402e91681b503772bae69b5a302d8e (diff)
downloadruby-6696da856843e4379d4f10b9ea3fdf3130f86804.tar.gz
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
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index 8bc5bac7c9..0f6e0fdbce 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -1660,7 +1660,7 @@ native_stop_timer_thread(void)
* 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();
}