Opened 4 years ago

Closed 4 years ago

#1730 closed defect (fixed)

scheme#numerator and scheme#denominator call unbound procedure for non-finite flonums

Reported by: Diego Owned by:
Priority: major Milestone: 5.3
Component: core libraries Version: 5.2.0
Keywords: Cc:
Estimated difficulty: trivial

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.

Change History (2)

comment:1 Changed 4 years ago by sjamaan

Milestone: someday5.3

comment:2 Changed 4 years ago by Mario Domenech Goulart

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.