]> granicus.if.org Git - libatomic_ops/commitdiff
Fix type of general AO_TS_INITIALIZER
authorIvan Maidanski <ivmai@mail.ru>
Thu, 26 Jan 2017 06:46:57 +0000 (09:46 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 26 Jan 2017 06:46:57 +0000 (09:46 +0300)
* src/atomic_ops.h (AO_TS_INITIALIZER): Change type from AO_t to
AO_TS_t; add outermost parentheses.

src/atomic_ops.h

index 9e054c284e8cb84aed4e22cbfb56e825fc56ab6f..8e516abcc1ee3a8426c185b631b91ff0dcadcd54 100644 (file)
 /* 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) \