X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=GHC%2FShow.lhs;h=dc19d8741a61cee33cfe7a816fc437f2810cd3f9;hb=685432ac839f249ccd98bdf79fcf0c985872380b;hp=11dd7e1ed576f97f863947c21d79afc1640749fe;hpb=704d0d18707ae4f4a4195cbbd86b884a75e481ba;p=ghc-base.git diff --git a/GHC/Show.lhs b/GHC/Show.lhs index 11dd7e1..dc19d87 100644 --- a/GHC/Show.lhs +++ b/GHC/Show.lhs @@ -388,7 +388,7 @@ showSignedInt (I# p) (I# n) r itos :: Int# -> String -> String itos n# cs | n# <# 0# = - let I# minInt# = minInt in + let !(I# minInt#) = minInt in if n# ==# minInt# -- negateInt# minInt overflows, so we can't do that: then '-' : itos' (negateInt# (n# `quotInt#` 10#))