Opened 7 years ago

Closed 2 years ago

#1520 closed defect (fixed)

binary-search: test failure: (=) bad argument type - not a number: #f

Reported by: Mario Domenech Goulart Owned by:
Priority: major Milestone: 5.4
Component: extensions Version: 5.0.0
Keywords: binary-search Cc:
Estimated difficulty:

Description

Change History (6)

comment:2 by felix winkelmann, 2 years ago

Milestone: someday5.4

comment:5 by sjamaan, 2 years ago

I think the problem is that (square x) returns bignums on 32-bit platforms, while binary-search assumes fixnums everywhere.

The code checks that the sequence is within fixnum range, but it doesn't do so for the return value of proc in the loop (but still calls fixnum ops on it!)

comment:6 by Mario Domenech Goulart, 2 years ago

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