bytevector-{u,s}int-set! now err when the size argument is not
positive.
This commit is contained in:
parent
8bd012bfeb
commit
b1c9fda05c
|
@ -750,7 +750,7 @@
|
||||||
($fx< i0 bvsize))
|
($fx< i0 bvsize))
|
||||||
(die who "invalid index" i0))
|
(die who "invalid index" i0))
|
||||||
(unless (and (fixnum? size)
|
(unless (and (fixnum? size)
|
||||||
($fx>= size 0)
|
($fx> size 0)
|
||||||
($fx<= i0 ($fx- bvsize size)))
|
($fx<= i0 ($fx- bvsize size)))
|
||||||
(die who "invalid size" size)))
|
(die who "invalid size" size)))
|
||||||
(let ([nsize (bitwise-length n)])
|
(let ([nsize (bitwise-length n)])
|
||||||
|
@ -788,7 +788,7 @@
|
||||||
($fx< i0 bvsize))
|
($fx< i0 bvsize))
|
||||||
(die who "invalid index" i0))
|
(die who "invalid index" i0))
|
||||||
(unless (and (fixnum? size)
|
(unless (and (fixnum? size)
|
||||||
($fx>= size 0)
|
($fx> size 0)
|
||||||
($fx<= i0 ($fx- bvsize size)))
|
($fx<= i0 ($fx- bvsize size)))
|
||||||
(die who "invalid size" size)))
|
(die who "invalid size" size)))
|
||||||
(let ([nsize (+ (bitwise-length n) 1)])
|
(let ([nsize (+ (bitwise-length n) 1)])
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
1844
|
1845
|
||||||
|
|
Loading…
Reference in New Issue