X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/clg/blobdiff_plain/4f1fe14131bc2628f23de36b81bf3b20ede3004a..110bd96ce6f2ff1aa4f25f899e12a5c3e3125f61:/gffi/vectors.lisp diff --git a/gffi/vectors.lisp b/gffi/vectors.lisp index 082c34c..ad9b461 100644 --- a/gffi/vectors.lisp +++ b/gffi/vectors.lisp @@ -20,7 +20,7 @@ ;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE ;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -;; $Id: vectors.lisp,v 1.2 2006-06-08 13:24:25 espen Exp $ +;; $Id: vectors.lisp,v 1.3 2007-06-01 06:15:37 espen Exp $ (in-package "GFFI") @@ -411,9 +411,9 @@ (define-type-method copy-function ((type vector0) &key inlined) for element by element-size until (memory-clear-p from-vector element-size element) finally (return length))) - (to-vector (setf - (ref-pointer to offset) - (allocate-memory (* length element-size))))) + (to-vector + (setf (ref-pointer to offset) + (allocate-memory (* (1+ length) element-size))))) (loop repeat length for element by element-size