Commit 9073ad8f authored by simonmar's avatar simonmar
Browse files

[project @ 1999-06-23 15:30:59 by simonmar]

print minInt as (mintInt+1)-1, to avoid gcc's conversion to unsigned.
parent 049530c7
......@@ -346,8 +346,12 @@ pprLit lit
<+> ppr range_max)])
-- in interface files, parenthesize raw negative ints.
-- this avoids problems like {-1} being interpreted
-- as a comment starter.
-- as a comment starter. -}
| ifaceStyle sty && i < 0 -> parens (integer i)
-- avoid a problem whereby gcc interprets the constant
-- minInt as unsigned.
| code_style && i == (toInteger (minBound :: Int))
-> parens (hcat [integer (i+1), text "-1"])
| otherwise -> integer i
where
......
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