--- Begin Message ---
Subject: |
srfi-4 functions return wrong length for bytevectors |
Date: |
Thu, 1 Mar 2012 15:56:54 +0100 |
Applying any of the f/u/s*vector-length functions to
a bytevector returns the wrong size. Specifically they
multiply (instead of dividing) the size of the bytevector
by the size of one element.
scheme@(guile-user)> (use-modules (rnrs bytevectors))
scheme@(guile-user)> (define bv (make-bytevector 4))
scheme@(guile-user)> (bytevector-length bv)
$1 = 4
scheme@(guile-user)> (f32vector-length bv)
$2 = 16
I believe $2 should be 1, or am I interpreting the
documentation wrong?
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#10918: srfi-4 functions return wrong length for bytevectors |
Date: |
Thu, 01 Mar 2012 16:20:28 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) |
Tobias Brandt <address@hidden> writes:
> Applying any of the f/u/s*vector-length functions to
> a bytevector returns the wrong size. Specifically they
> multiply (instead of dividing) the size of the bytevector
> by the size of one element.
>
> scheme@(guile-user)> (use-modules (rnrs bytevectors))
> scheme@(guile-user)> (define bv (make-bytevector 4))
> scheme@(guile-user)> (bytevector-length bv)
> $1 = 4
> scheme@(guile-user)> (f32vector-length bv)
> $2 = 16
Fixed in ef405f8ba73fc57706d7155a2e008352416debcf.
Thanks for the bug report! :)
Mark
--- End Message ---