[Git][ghc/ghc][wip/gc/misc-rts] rts: Fix macro parenthesisation

Ben Gamari gitlab at gitlab.haskell.org
Tue May 21 13:50:56 UTC 2019



Ben Gamari pushed to branch wip/gc/misc-rts at Glasgow Haskell Compiler / GHC


Commits:
48504bf5 by Ben Gamari at 2019-05-16T01:46:28Z
rts: Fix macro parenthesisation

- - - - -


1 changed file:

- includes/rts/storage/InfoTables.h


Changes:

=====================================
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



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/commit/48504bf59d561df988c5d8214f09e012fb617f46

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/commit/48504bf59d561df988c5d8214f09e012fb617f46
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20190521/e8bca5a2/attachment-0001.html>


More information about the ghc-commits mailing list