"Weird Number" crashes GHCi (and Hugs) when integer-divided by -1
|Reported by:||paul@…||Owned by:|
|Type of failure:||Test Case:|
|Related Tickets:||Differential Rev(s):|
(-2147483648::Int) div (-1::Int)
This expression triggers a crash in GHCi on Windows XP, using the 6.6 binary distribution. It generates zero on the PowerPC binary. This also affects HUGS.
-2147483648 is the "weird number" (largest 32-bit negative) which has no positive counterpart representable in 32 bits.