1.0.17.6: fix bug introduced by 1.0.7.3
[sbcl.git] / src / pcl / wrapper.lisp
index c204e4f..3ea3a2c 100644 (file)
 (declaim (inline wrapper-class*))
 (defun wrapper-class* (wrapper)
   (or (wrapper-class wrapper)
-      (ensure-non-standard-class
-       (classoid-name (layout-classoid wrapper)))))
+      (let ((classoid (layout-classoid wrapper)))
+        (ensure-non-standard-class
+         (classoid-name classoid)
+         classoid))))
 
 ;;; The wrapper cache machinery provides general mechanism for
 ;;; trapping on the next access to any instance of a given class. This
 (defun valid-wrapper-of (instance)
   (let ((wrapper (wrapper-of instance)))
     (if (invalid-wrapper-p wrapper)
-       (check-wrapper-validity instance)
-       wrapper)))
+        (check-wrapper-validity instance)
+        wrapper)))
 \f
 ;;;  NIL: means nothing so far, no actual arg info has NILs in the
 ;;;  metatype.