r9431: revert to previous handling arrays on sbcl/cmu
[uffi.git] / src / aggregates.lisp
index 5c5b5118a88950ea607a21a9f322c6a8c0768adc..523bd4f72983eadee80b0aa91ef86c6e3bae09ca 100644 (file)
@@ -159,15 +159,9 @@ of the enum-name name, separator-string, and field-name"
 
 (defmacro deref-array (obj type i)
   "Returns a field from a row"
-  #+(or lispworks scl) (declare (ignore type))
-  #+(or cmu scl)  `(alien:deref
-                   (alien:cast
-                    ,obj
-                    ,(convert-from-uffi-type type :declare)) ,i)
-  #+sbcl `(sb-alien:deref
-          (sb-alien:cast 
-           ,obj
-           ,(convert-from-uffi-type type :declare)) ,i)
+  #+(or lispworks cmu sbcl scl) (declare (ignore type))
+  #+(or cmu scl)  `(alien:deref ,obj ,i)
+  #+sbcl  `(sb-alien:deref ,obj ,i)
   #+lispworks `(fli:dereference ,obj :index ,i :copy-foreign-object nil)
   #+allegro `(ff:fslot-value-typed (quote ,(convert-from-uffi-type type :type)) :c ,obj ,i)
   #+openmcl