[armedbear-cvs] r12113 - trunk/abcl/src/org/armedbear/lisp

Erik Huelsmann ehuelsmann at common-lisp.net
Sun Aug 23 17:40:00 UTC 2009


Author: ehuelsmann
Date: Sun Aug 23 13:39:56 2009
New Revision: 12113

Log:
Fix types used in THE type-checking for structure access.

Modified:
   trunk/abcl/src/org/armedbear/lisp/defstruct.lisp

Modified: trunk/abcl/src/org/armedbear/lisp/defstruct.lisp
==============================================================================
--- trunk/abcl/src/org/armedbear/lisp/defstruct.lisp	(original)
+++ trunk/abcl/src/org/armedbear/lisp/defstruct.lisp	Sun Aug 23 13:39:56 2009
@@ -345,7 +345,7 @@
           (t
            `((declaim (ftype (function * ,type) ,accessor-name))
              (defun ,accessor-name (instance)
-               (structure-ref (the ',*dd-name* instance) ,index))
+               (structure-ref (the ,*dd-name* instance) ,index))
              (define-source-transform ,accessor-name (instance)
                ,(if (eq type 't)
                     ``(structure-ref (the ,',*dd-name* ,instance) ,,index)
@@ -370,7 +370,7 @@
                `(aset (truly-the ,',*dd-type* ,instance) ,,index ,value))))
           (t
            `((defun (setf ,accessor-name) (value instance)
-               (structure-set (the ',*dd-name* instance) ,index value))
+               (structure-set (the ,*dd-name* instance) ,index value))
              (define-source-transform (setf ,accessor-name) (value instance)
                `(structure-set (the ,',*dd-name* ,instance)
                                ,,index ,value)))))))




More information about the armedbear-cvs mailing list