From 57b6576bdba168c551b02a786952126591c08a66 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Wed, 29 Nov 2017 21:09:52 +0300 Subject: [PATCH] Remove explicit case of TRUE/FALSE to AO_t in suspend/resume_thread (fix commit ce09fd5) * pthread_stop_world.c [GC_ENABLE_SUSPEND_THREAD && !GC_OPENBSD_UTHREADS && !NACL] (GC_suspend_thread, GC_resume_thread): Do not case TRUE/FALSE to AO_t explicitly. --- pthread_stop_world.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pthread_stop_world.c b/pthread_stop_world.c index 81e50b3..b1f3745 100644 --- a/pthread_stop_world.c +++ b/pthread_stop_world.c @@ -462,7 +462,7 @@ STATIC void GC_restart_handler(int sig) } /* Set the flag making the change visible to the signal handler. */ - AO_store_release(&t->suspended_ext, (AO_t)TRUE); + AO_store_release(&t->suspended_ext, TRUE); if ((pthread_t)thread == pthread_self()) { UNLOCK(); @@ -518,7 +518,7 @@ STATIC void GC_restart_handler(int sig) LOCK(); t = GC_lookup_thread((pthread_t)thread); if (t != NULL) - AO_store(&t->suspended_ext, (AO_t)FALSE); + AO_store(&t->suspended_ext, FALSE); UNLOCK(); } -- 2.7.4