From 85fd1402870f5ea661846622133e8e857215ba2f Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Wed, 29 Nov 2017 11:41:22 +0300 Subject: [PATCH] Fix 'comparison of 255 with expr of type bool' error in gc_atomic_ops.h * include/private/gc_atomic_ops.h [GC_BUILTIN_ATOMIC && (CPPCHECK || !__GCC_ATOMIC_TEST_AND_SET_TRUEVAL)] (AO_TS_SET): Define to 1 instead of 0xff. --- include/private/gc_atomic_ops.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/private/gc_atomic_ops.h b/include/private/gc_atomic_ops.h index 5506deab..1b9a4712 100644 --- a/include/private/gc_atomic_ops.h +++ b/include/private/gc_atomic_ops.h @@ -37,7 +37,7 @@ # if defined(__GCC_ATOMIC_TEST_AND_SET_TRUEVAL) && !defined(CPPCHECK) # define AO_TS_SET __GCC_ATOMIC_TEST_AND_SET_TRUEVAL # else -# define AO_TS_SET (AO_TS_t)0xff +# define AO_TS_SET (AO_TS_t)1 /* true */ # endif # define AO_CLEAR(p) __atomic_clear(p, __ATOMIC_RELEASE) # define AO_test_and_set_acquire(p) __atomic_test_and_set(p, __ATOMIC_ACQUIRE) -- 2.40.0