When in unsafe mode, do not use the checked functions to perform C<->Lisp type coercions

This commit is contained in:
Juan Jose Garcia Ripoll 2010-05-15 16:56:53 +02:00
parent 371ca30dbb
commit 554c43ab67

View file

@ -183,8 +183,8 @@
(let ((x (cdddr (rep-type-record rep-type))))
(unless x
(cmperr "Cannot coerce lisp object to C type ~A" rep-type))
(wt (if (and (policy-assume-no-errors)
(subtypep loc-type dest-type))
(wt (if (or (policy-assume-no-errors)
(subtypep loc-type dest-type))
(second x)
(first x))
"(" loc ")")))