chiark / gitweb /
Bug fix in UNSET-0-VECTOR
authorespen <espen>
Mon, 18 Jun 2007 10:13:07 +0000 (10:13 +0000)
committerespen <espen>
Mon, 18 Jun 2007 10:13:07 +0000 (10:13 +0000)
gffi/vectors.lisp

index a671d1db4d40ef1205a0be7b082ac587075b8841..24b00df7a131ff53758b59b47ce79e8b6d2affd3 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)