Wrong calculation with Int64
Let's multiply 1524503639859200000 on 13:
$ ghci
Prelude> import Data.Int
Prelude Data.Int> 1524503639859200000 * 13
19818547318169600000 -- that's OK!
Prelude Data.Int> (1524503639859200000::Int64)*(13::Int64)
1371803244460048384 -- FAIL!!!!!
Trac metadata
Trac field | Value |
---|---|
Version | 6.12.3 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Runtime System |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |