Skip to content

Commit

Permalink
BUGFIX: fixed bug in fvec #'add found by Stephen A. Goss
Browse files Browse the repository at this point in the history
  • Loading branch information
ks committed Jun 17, 2012
1 parent 6adf239 commit 0723fd1
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/vec-ctx.lisp
Expand Up @@ -545,13 +545,14 @@
(multiple-value-setq (chunk-idxs idxs)
(chunk-indexes chunk-id idxs))
(let ((start 0))
(loop :for idx :in chunk-idxs
:for val* :on vals
:do (let ((val (car val*)))
(copy chunk start idx)
(push-val val)
(setf start idx))
:finally (setf vals (cdr val*)))
(when chunk-idxs
(loop :for idx :in chunk-idxs
:for val* :on vals
:do (let ((val (car val*)))
(copy chunk start idx)
(push-val val)
(setf start idx))
:finally (setf vals (cdr val*))))
(copy chunk start (length chunk))))
(t
(copy chunk 0 (length chunk))))))
Expand Down

0 comments on commit 0723fd1

Please sign in to comment.