Parenthesize more defensively in macro definition.
authorBen Pfaff <blp@gnu.org>
Sun, 5 Oct 2008 21:56:22 +0000 (14:56 -0700)
committerBen Pfaff <blp@gnu.org>
Sun, 12 Oct 2008 03:56:33 +0000 (20:56 -0700)
src/libpspp/ll.h

index 96ef9a2033502ea47483e83be00ed0549def21ce..65ecf55f2cad759a50085a85e90f1e3c79cf7f02 100644 (file)
@@ -336,9 +336,9 @@ struct ll *ll_find_partition (const struct ll *r0, const struct ll *r1,
 #define ll_tail__(STRUCT, MEMBER, LIST)                         \
         ll_data__ (ll_tail (LIST), STRUCT, MEMBER, LIST)
 #define ll_next__(DATA, STRUCT, MEMBER, LIST)                           \
-        ll_data__ (ll_next (&DATA->MEMBER), STRUCT, MEMBER, LIST)
+        ll_data__ (ll_next (&(DATA)->MEMBER), STRUCT, MEMBER, LIST)
 #define ll_prev__(DATA, STRUCT, MEMBER, LIST)                           \
-        ll_data__ (ll_prev (&DATA->MEMBER), STRUCT, MEMBER, LIST)
+        ll_data__ (ll_prev (&(DATA)->MEMBER), STRUCT, MEMBER, LIST)
 \f
 /* Inline functions. */