Commit 0c7f0c2c authored by ian@well-typed.com's avatar ian@well-typed.com

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.
parent 84d527bb
......@@ -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; \
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment