Summary

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

Metadata

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.