r9016: fixes for openmcl
[uffi.git] / src / objects.lisp
index 82a9d0e8270960c5041310aa0bc1d59c0ef81527..42ab3fc334fe0b3266fe477f46a19df2dcdcf3f6 100644 (file)
@@ -98,7 +98,7 @@ an array of TYPE with size SIZE. The TYPE parameter is evaluated."
   #+sbcl `(sb-alien:sap-alien (sb-sys:int-sap ,addr) (* ,(convert-from-uffi-type (eval type) :type)))
   #+lispworks `(fli:make-pointer :address ,addr :type (quote ,(convert-from-uffi-type (eval type) :type)))
   #+allegro addr
-  #+mcl `(ccl:%int-to-ptr addr)
+  #+mcl `(ccl:%int-to-ptr ,addr)
   )
 
 (defmacro pointer-address (ptr)
@@ -232,7 +232,7 @@ an array of TYPE with size SIZE. The TYPE parameter is evaluated."
            ,pointer (* ,(convert-from-uffi-type (eval type) :type)))))
     ,@body))
 
-#+allegro
+#+(or allegro openmcl)
 (defmacro with-cast-pointer ((binding-name pointer type) &body body)
   (declare (ignore type))
   `(let ((,binding-name ,pointer))