From: Ivan Maidanski Date: Thu, 26 Jan 2017 06:46:57 +0000 (+0300) Subject: Fix type of general AO_TS_INITIALIZER X-Git-Tag: v7.6.0~122 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=57dd0105c8050742699ae4f92e66544d9a63c445;p=libatomic_ops Fix type of general AO_TS_INITIALIZER * src/atomic_ops.h (AO_TS_INITIALIZER): Change type from AO_t to AO_TS_t; add outermost parentheses. --- diff --git a/src/atomic_ops.h b/src/atomic_ops.h index 9e054c2..8e516ab 100644 --- a/src/atomic_ops.h +++ b/src/atomic_ops.h @@ -157,7 +157,7 @@ /* The test_and_set primitive returns an AO_TS_VAL_t value. */ /* AO_TS_t is the type of an in-memory test-and-set location. */ -#define AO_TS_INITIALIZER (AO_t)AO_TS_CLEAR +#define AO_TS_INITIALIZER ((AO_TS_t)AO_TS_CLEAR) /* Platform-dependent stuff: */ #if (defined(__GNUC__) || defined(_MSC_VER) || defined(__INTEL_COMPILER) \