fx* does not check for overflow
Bug #191310 reported by
leppie
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ikarus Scheme |
Fix Committed
|
High
|
Abdulaziz Ghuloum |
Bug Description
Not sure if this is classified as a bug. The behaviour is not defined in R6RS (is it part of the IEEE floating point spec maybe?). There also seems to be inconsistency between fx*/fx+ and fx-/fx/ expected results in terms of exceptions and the 'correct' vs the 'mathematically correct' answer.
> (fx* 429496728 2)
-214748368
> (fx+ 429496728 429496728)
Unhandled exception
Condition components:
1. &assertion
2. &who: fx+
3. &message: "overflow when adding numbers"
4. &irritants: (429496728 429496728)
Changed in ikarus: | |
milestone: | none → 0.0.4 |
To post a comment you must log in.
Will fix. Thanks.