Ticket #7233 (closed bug: fixed)
Int64 division buggy on a 32-bit installation
| Reported by: | lerkok | Owned by: | |
|---|---|---|---|
| Priority: | highest | Milestone: | 7.6.2 |
| Component: | libraries/base | Version: | 7.6.1 |
| Keywords: | Cc: | mikhail.vorozhtsov@… | |
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | None/Unknown | Difficulty: | Unknown |
| Test Case: | tests/numeric/should_run/T7233 | Blocked By: | |
| Blocking: | Related Tickets: |
Description
This is with GHC 7.4.1, running on Linux, 32 bits:
Prelude> maxBound :: Int 2147483647 Prelude> :m Data.Int Prelude Data.Int> [5 `div` (minBound+k::Int64) | k <- [0 .. 10]] [0,0,1,1,1,-1,-1,-1,-1,-1,-1]
Expected value: Last expression should evaluate to:
[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]
Change History
Note: See
TracTickets for help on using
tickets.
