flatten-codes raises exception: "no exception label"

Bug #255879 reported by Gwen Weinholt
2
Affects Status Importance Assigned to Milestone
Ikarus Scheme
Fix Committed
Low
Abdulaziz Ghuloum

Bug Description

This code doesn't work with fx<?, but does work with <:

Ikarus Scheme version 0.0.3+ (revision 1574, build 2008-08-05, 64-bit)
Copyright (c) 2006-2008 Abdulaziz Ghuloum

> (define (fxlog2 x)
    (let lp ((x x) (y 1))
      (if (fx<? y (fixnum-width))
          (lp (fxior x (fxarithmetic-shift-right x y))
              (fxarithmetic-shift-left y 1))
          (fxbit-count x))))
Unhandled exception
 Condition components:
   1. &error
   2. &who: flatten-codes
   3. &message: "no exception label"
   4. &irritants: ()
> (define (fxlog2 x)
    (let lp ((x x) (y 1))
      (if (< y (fixnum-width))
          (lp (fxior x (fxarithmetic-shift-right x y))
              (fxarithmetic-shift-left y 1))
          (fxbit-count x))))
>

Related branches

Revision history for this message
Abdulaziz Ghuloum (aghuloum) wrote :

Fixed in 1575.

Changed in ikarus:
assignee: nobody → aghuloum
importance: Undecided → Low
status: New → Fix Committed
Changed in ikarus:
milestone: none → 0.0.4
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.