X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fdefbangstruct.lisp;h=7516e290814a1e0a11d89e0d03c885180f3deef6;hb=872175cd9cb5b4966a36d4bd92421cc407a0355b;hp=fecf0f8cd90d62fafe10c769b8d0fdb6a2d847f2;hpb=0b3ec4b1d978b887db175b7b3bada8e727683e15;p=sbcl.git diff --git a/src/code/defbangstruct.lisp b/src/code/defbangstruct.lisp index fecf0f8..7516e29 100644 --- a/src/code/defbangstruct.lisp +++ b/src/code/defbangstruct.lisp @@ -71,7 +71,7 @@ (defun (setf def!struct-type-make-load-form-fun) (new-value type) (when #+sb-xc-host t #-sb-xc-host *type-system-initialized* (aver (subtypep type 'structure!object)) - (check-type new-value def!struct-type-make-load-form-fun)) + (aver (typep new-value 'def!struct-type-make-load-form-fun))) (setf (gethash type *def!struct-type-make-load-form-fun*) new-value))) ;;; the simplest, most vanilla MAKE-LOAD-FORM function for DEF!STRUCT @@ -146,10 +146,10 @@ #+sb-xc-host (progn (defun %instance-length (instance) - (check-type instance structure!object) + (aver (typep instance 'structure!object)) (layout-length (class-layout (sb!xc:find-class (type-of instance))))) (defun %instance-ref (instance index) - (check-type instance structure!object) + (aver (typep instance 'structure!object)) (let* ((class (sb!xc:find-class (type-of instance))) (layout (class-layout class))) (if (zerop index) @@ -160,7 +160,7 @@ (declare (type symbol accessor)) (funcall accessor instance))))) (defun %instance-set (instance index new-value) - (check-type instance structure!object) + (aver (typep instance 'structure!object)) (let* ((class (sb!xc:find-class (type-of instance))) (layout (class-layout class))) (if (zerop index)