Summary
scheme#numerator and scheme#denominator call unbound procedure for non-finite flonums
Metadata
- Id: 7eb0b84aacb469727a62b73ebe6e0df85e1eda8e
- Trac id: 1730
- Type: defect
- Reporter: dieggsy
- Owner:
- Cc:
- Status: closed
- Component: core libraries
- Estimated difficulty: trivial
- Resolution: fixed
- Priority: major
- Milestone: 5.3
- Version: 5.2.0
- Changetime: 2021-03-06 11:33:32 UTC
- Created: 2021-03-03 05:39:09 UTC
- Keywords:
Description
Example:
#;1> (numerator +nan.0)
Error: unbound variable: bad-inexact
Call history:
<syntax> (numerator +nan.0)
<eval> (numerator +nan.0) <--
#;1> (denominator +nan.0)
Error: unbound variable: bad-inexact
Call history:
<syntax> (denominator +nan.0)
<eval> (denominator +nan.0) <--
The issue seems evident in the definitions of these procedures in library.scm: the procedure bad-inexact is used, but isn't referenced or defined anywhere else.
Changes and comments
[2021-03-03 07:37:30 UTC] sjamaan changed milestone from someday to 5.3
[2021-03-06 11:33:32 UTC] mario changed status from new to closed
[2021-03-06 11:33:32 UTC] mario set resolution to fixed
[2021-03-06 11:33:32 UTC] mario wrote:
Patch by Peter (https://lists.nongnu.org/archive/html/chicken-hackers/2021-03/msg00000.html) has been pushed.