From: Mark Wooding Date: Thu, 26 May 2016 08:26:09 +0000 (+0100) Subject: src/pset-impl.lisp: Don't look in `*module-type-map*' if it's unbound. X-Git-Url: https://git.distorted.org.uk/~mdw/sod/commitdiff_plain/ff344fb7a4598447cd6527c84f01d658f3fc9f11 src/pset-impl.lisp: Don't look in `*module-type-map*' if it's unbound. It should be bound in general use, but depending on it makes testing unnecessarily difficult. --- diff --git a/src/pset-impl.lisp b/src/pset-impl.lisp index 14cb43b..baa3830 100644 --- a/src/pset-impl.lisp +++ b/src/pset-impl.lisp @@ -69,7 +69,8 @@ (defmethod coerce-property-value ((value string) (type (eql :id)) (wanted (eql :type))) - (or (gethash value *module-type-map*) + (or (and (boundp '*module-type-map*) + (gethash value *module-type-map*)) (gethash value *declspec-map*) (error "Unknown type `~A'." value)))