fxbit-set? has a new definition

Bug #886314 reported by Göran Weinholt
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ikarus Scheme

Bug Description

The errata for R6RS corrects the definition of fxbit-set? in this way:

In the specification of fxbit-set?, the sentence

"Fx2 must be non-negative and less than (fixnum-width)."
should be replaced by

"Fx2 must be non-negative."
Also, the code describing its computation should be changed to:

(if (fx>= fx2 (fx- (fixnum-width) 1))
    (fxnegative? fx1)
         (fxand fx1
                (fxarithmetic-shift-left 1 fx2)))))

Ikarus still uses the old definition and raises an exception if fx2 is (fixnum-width) or greater.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers