From aaab2de15498ddaad91755bec0ca612a1147ef9f Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Tue, 4 Dec 2018 13:38:50 -0500 Subject: [PATCH] Fix list macro --- include/cyclone/types.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/cyclone/types.h b/include/cyclone/types.h index 476ab8fd..d5c642cb 100644 --- a/include/cyclone/types.h +++ b/include/cyclone/types.h @@ -1154,8 +1154,8 @@ typedef struct { pair_type a; pair_type b; pair_type c;} list_3_type; typedef struct { pair_type a; pair_type b; pair_type c; pair_type d;} list_4_type; #define set_list_2_as_expr(l, a1, a2) \ - (set_pair_as_expr(((list_2_type *)(l))->b, a2, NULL), \ - set_pair_as_expr(((list_2_type *)(l))->a, a1, &((list_2_type)(l)->b))) + (set_pair_as_expr(&(((list_2_type *)(l))->b), a2, NULL), \ + set_pair_as_expr(&(((list_2_type *)(l))->a), a1, &(((list_2_type *)(l))->b))) // DEPRECATED #define make_list_1(l, a1) \