diff --git a/scheme/ikarus.bytevectors.ss b/scheme/ikarus.bytevectors.ss index 3b7d81e..d6f20c5 100644 --- a/scheme/ikarus.bytevectors.ss +++ b/scheme/ikarus.bytevectors.ss @@ -832,7 +832,9 @@ (make-bytevector idx) (die who "not a proper list" ls)))) (lambda (ls endianness size) - (race ls ls ls 0 endianness size))) + (if (and (fixnum? size) (fx> size 0)) + (race ls ls ls 0 endianness size) + (die who "size must be a positive integer" size)))) (define uint-list->bytevector (make-xint-list->bytevector 'uint-list->bytevector bytevector-uint-set!/who)) diff --git a/scheme/last-revision b/scheme/last-revision index a894381..ad0b314 100644 --- a/scheme/last-revision +++ b/scheme/last-revision @@ -1 +1 @@ -1721 +1722