]> 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>
Mon, 6 Feb 2017 12:30:13 +0000 (15:30 +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 47ce23d25acf15a0569bbebefcdda1129337594a..c3dde0a0d0db5903f3b9e558e1a02a8e3b406490 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) \