fixed &who for the error condition when uint-list->bytevector is

given a nonpositive size.
This commit is contained in:
Abdulaziz Ghuloum 2008-12-23 20:44:47 -05:00
parent 82b7edcf14
commit 05180035f2
2 changed files with 4 additions and 2 deletions

View File

@ -832,7 +832,9 @@
(make-bytevector idx) (make-bytevector idx)
(die who "not a proper list" ls)))) (die who "not a proper list" ls))))
(lambda (ls endianness size) (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 (define uint-list->bytevector
(make-xint-list->bytevector (make-xint-list->bytevector
'uint-list->bytevector bytevector-uint-set!/who)) 'uint-list->bytevector bytevector-uint-set!/who))

View File

@ -1 +1 @@
1721 1722