[plt-scheme] make-u8vector bug

From: Eli Barzilay (eli at barzilay.org)
Date: Sat Feb 17 10:24:41 EST 2007

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!


Posted on the users mailing list.