rts: Fix macro parenthesisation
authorBen Gamari <ben@smart-cactus.org>
Wed, 8 May 2019 22:35:26 +0000 (18:35 -0400)
committerBen Gamari <ben@smart-cactus.org>
Tue, 18 Jun 2019 22:08:33 +0000 (18:08 -0400)
includes/rts/storage/InfoTables.h

index 5c8296a..89fb2db 100644 (file)
@@ -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