bytevector-ieee-double-ref for big-endian uses the wrong index

Bug #297855 reported by G. Weinholt
2
Affects Status Importance Assigned to Milestone
Ikarus Scheme
Fix Committed
Medium
Abdulaziz Ghuloum

Bug Description

$ ikarus
Ikarus Scheme version 0.0.3+ (revision 1673, build 2008-11-13, 64-bit)
Copyright (c) 2006-2008 Abdulaziz Ghuloum

> (let ((b (make-bytevector 16 0)))
    (bytevector-ieee-double-set! b 0 2.71 (endianness big))
    (bytevector-ieee-double-set! b 8 3.14 (endianness big))
    (values
     (bytevector-ieee-double-ref b 0 (endianness big))
     (bytevector-ieee-double-ref b 8 (endianness big))))
2.71
2.71
>

It would seem that index 0 is used no matter what index is given.

Related branches

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

Fixed in 1675. Thanks! (this must have been nasty for you to find)

Changed in ikarus:
assignee: nobody → aghuloum
importance: Undecided → Medium
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.