"views" did not exist on "master"
scaleFloat does not handle overflow correctly.
If you call scaleFloat with a somewhat large integer value, the result correctly overflows and yields Infinity. However, if you call scaleFloat with an extremely large integer value, the result is finite!
> scaleFloat 30000 1
Infinity
> scaleFloat (maxBound :: Int) 1
0.5
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.12.3 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | libraries/base |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |