summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-05-08 18:35:26 -0400
committerBen Gamari <ben@smart-cactus.org>2019-10-18 15:26:53 -0400
commit4d674c4e58cf8748108712fa5f034e6363bfde1f (patch)
treece3834cd70d706ed522c575fdb105a9ed05a8150 /includes
parent81d4675eea81314ef0df2a20bf621fb383b6958d (diff)
downloadhaskell-4d674c4e58cf8748108712fa5f034e6363bfde1f.tar.gz
rts: Fix macro parenthesisationwip/gc/misc-rts
Diffstat (limited to 'includes')
-rw-r--r--includes/rts/storage/InfoTables.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/rts/storage/InfoTables.h b/includes/rts/storage/InfoTables.h
index 4de5207b4d..b97e12982b 100644
--- a/includes/rts/storage/InfoTables.h
+++ b/includes/rts/storage/InfoTables.h
@@ -355,7 +355,7 @@ typedef struct StgConInfoTable_ {
*/
#if defined(TABLES_NEXT_TO_CODE)
#define GET_CON_DESC(info) \
- ((const char *)((StgWord)((info)+1) + (info->con_desc)))
+ ((const char *)((StgWord)((info)+1) + ((info)->con_desc)))
#else
#define GET_CON_DESC(info) ((const char *)(info)->con_desc)
#endif