[plt-scheme] make-u8vector bug
On Feb 17, jos koot wrote:
> Hi,
> Procedure make-u8vector of (lib "4.ss" "srfi")) initializes the first
> element only. See example below.
It works fine for me, perhaps there is some platform specific bug -- I
added this in the test suite to see if it happens elsewhere.
> Welcome to DrScheme, version 369.8-svn16feb2007 [3m].
> Language: Textual (MzScheme, includes R5RS) custom
> (require (lib "4.ss" "srfi"))
> (define v (make-u8vector 3 255))
> (u8vector-ref v 0) ; --> 255
> (u8vector-ref v 1) ; --> 0 in stead of 255
> (u8vector-ref v 2) ; --> 0 in stead of 255
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://www.barzilay.org/ Maze is Life!