chiark / gitweb /
src/pset-impl.lisp: Don't look in `*module-type-map*' if it's unbound.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 26 May 2016 08:26:09 +0000 (09:26 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 8 Jun 2018 18:58:28 +0000 (19:58 +0100)
It should be bound in general use, but depending on it makes testing
unnecessarily difficult.

src/pset-impl.lisp

index 14cb43b9a3f5dbe3dc5773fd30a36e7d6f36042d..baa38303cf4d22325dec4f273625496603fd3a8d 100644 (file)
@@ -69,7 +69,8 @@ (defmethod coerce-property-value
 
 (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)))