mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-20 06:09:18 +02:00
Fixing destination offset in bytevector-copy-partial!.
This commit is contained in:
parent
d4da2cb85f
commit
16f840ed20
1 changed files with 1 additions and 1 deletions
|
@ -118,4 +118,4 @@
|
||||||
(define (bytevector-copy-partial! from start end to at)
|
(define (bytevector-copy-partial! from start end to at)
|
||||||
(do ((i start (+ i 1)))
|
(do ((i start (+ i 1)))
|
||||||
((= i end))
|
((= i end))
|
||||||
(bytevector-u8-set! to (+ i at) (bytevector-u8-ref from i))))
|
(bytevector-u8-set! to (+ (- i start) at) (bytevector-u8-ref from i))))
|
||||||
|
|
Loading…
Add table
Reference in a new issue