Closed GoogleCodeExporter closed 9 years ago
Thank you for your bug report!
-- fujita
Original comment by y.fujita...@gmail.com
on 6 Apr 2009 at 10:51
I have fixed the bug and trunk directory is updated to revision 417.
Ypsilon 0.9.6-trunk/r417 Copyright (c) 2009 Y.Fujita, LittleWing Company
Limited.
> (fxrotate-bit-field #b10 0 (- (fixnum-width) 1) (- (fixnum-width) 2))
1
Regarding fxarithmetic-shift,
I think (fxarithmetic-shift (fxarithmetic-shift #b11 (- (fixnum-width) 3)) 6)
should
raises `&implementation-restriction'.
Reference:
http://www.r6rs.org/final/html/r6rs-lib/r6rs-lib-Z-H-12.html#node_idx_938
That bug also fixed in revision 417.
Ypsilon 0.9.6-trunk/r417 Copyright (c) 2009 Y.Fujita, LittleWing Company
Limited.
> (fxarithmetic-shift (fxarithmetic-shift #b11 (- (fixnum-width) 3)) 1)
error in fxarithmetic-shift: return value out of fixnum range 1610612736
irritants:
(805306368 1)
backtrace:
0 (fxarithmetic-shift (fxarithmetic-shift 3 (- (fixnum-width) 3)) 1)
..."/dev/stdin" line 1
> (fxarithmetic-shift (fxarithmetic-shift #b11 (- (fixnum-width) 3)) 6)
error in fxarithmetic-shift: return value out of fixnum range 51539607552
irritants:
(805306368 6)
backtrace:
0 (fxarithmetic-shift (fxarithmetic-shift 3 (- (fixnum-width) 3)) 6)
..."/dev/stdin" line 1
Please try. Thank you!
--fujita
Original comment by y.fujita...@gmail.com
on 6 Apr 2009 at 2:01
Original issue reported on code.google.com by
rott...@gmail.com
on 3 Apr 2009 at 5:01Attachments: