summaryrefslogtreecommitdiff
path: root/includes/mkDerivedConstants.c
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2012-10-26 20:07:47 +0100
committerIan Lynagh <ian@well-typed.com>2012-10-26 20:07:47 +0100
commit0c7f0c2cc2c3746cc8ecd8efd44963c65cb57270 (patch)
treeaaca733077fc9d45638142aa4d182ed6f9611c7e /includes/mkDerivedConstants.c
parent84d527bb46d9c820ba4f52f4f28393d890575221 (diff)
downloadhaskell-0c7f0c2cc2c3746cc8ecd8efd44963c65cb57270.tar.gz
Add some missing parentheses to mkDerivedConstants.c
This was breaking the build on s390. Not sure why it didn't bite on any other platforms.
Diffstat (limited to 'includes/mkDerivedConstants.c')
-rw-r--r--includes/mkDerivedConstants.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/mkDerivedConstants.c b/includes/mkDerivedConstants.c
index a58c500928..1393112595 100644
--- a/includes/mkDerivedConstants.c
+++ b/includes/mkDerivedConstants.c
@@ -46,7 +46,7 @@ enum Mode { Gen_Haskell_Type, Gen_Haskell_Value, Gen_Haskell_Wrappers, Gen_Haske
printf(" , pc_OFFSET_" str " :: Int\n"); \
break; \
case Gen_Haskell_Value: \
- printf(" , pc_OFFSET_" str " = %" PRIdPTR "\n", (intptr_t)offset); \
+ printf(" , pc_OFFSET_" str " = %" PRIdPTR "\n", (intptr_t)(offset)); \
break; \
case Gen_Haskell_Wrappers: \
printf("oFFSET_" str " :: DynFlags -> Int\n"); \
@@ -56,7 +56,7 @@ enum Mode { Gen_Haskell_Type, Gen_Haskell_Value, Gen_Haskell_Wrappers, Gen_Haske
printf(" oFFSET_" str ",\n"); \
break; \
case Gen_Header: \
- printf("#define OFFSET_" str " %" PRIdPTR "\n", (intptr_t)offset); \
+ printf("#define OFFSET_" str " %" PRIdPTR "\n", (intptr_t)(offset)); \
break; \
}