Skip to content
Snippets Groups Projects
Commit 4d9333b7 authored by Simon Marlow's avatar Simon Marlow
Browse files

[project @ 1998-01-27 17:39:45 by simonm]

use an explicit primitive integer for minBound::Int to avoid problems
with overloading and negation.
parent 9fbbfbc8
No related merge requests found
......@@ -21,6 +21,6 @@ instance Bounded Char where
maxBound = '\255'
instance Bounded Int where
minBound = -2147483648 -- GHC <= 2.09 had this at -2147483647
maxBound = 2147483647
minBound = I# -2147483648# -- GHC <= 2.09 had this at -2147483647
maxBound = 2147483647
\end{code}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment