X-Git-Url: https://git.distorted.org.uk/~mdw/clg/blobdiff_plain/90e8bbf63d6ab5647f284af1cbab30ae37c5ae1c..c4261a5cfa370d03427848cbae04605b87ba170b:/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 @@ 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