Opened 13 years ago

Closed 13 years ago

#1043 closed bug (duplicate)

"Weird Number" crashes GHCi (and Hugs) when integer-divided by -1

Reported by: paul@… Owned by:
Priority: normal Milestone:
Component: Compiler Version: 6.6
Keywords: Cc:
Operating System: Windows Architecture: x86
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


(-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.

Change History (1)

comment:1 Changed 13 years ago by dons

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.