Opened 8 years ago

Closed 8 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: Test Case:
Blocked By: Blocking:
Related Tickets: Differential Revisions:

Description

(-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 8 years ago by dons

  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.