chiark / gitweb /
Bug fix in UNSET-0-VECTOR
[clg] / gffi / vectors.lisp
index ad9b46127575c688f9bb5a53efa5ba5cc38751b4..0f852284ab4fd5c331b85dfe5a354a15179712ad 100644 (file)
@@ -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.3 2007-06-01 06:15:37 espen Exp $
+;; $Id: vectors.lisp,v 1.4 2007-06-18 10:13:07 espen Exp $
 
 
 (in-package "GFFI")
@@ -295,7 +295,7 @@ (defun map-0-vector (seqtype function location element-type &optional (ref :read
 
 (defun unset-0-vector (location element-type &optional temp-p)
   (loop
-   with destroy = (destroy-function element-type temp-p)
+   with destroy = (destroy-function element-type :temp temp-p)
    with element-size = (size-of element-type)
    for offset by element-size
    until (memory-clear-p (pointer+ location offset) element-size)