Skip to content

Commit 65d323e

Browse files
committed
Refrain from matching typemod expression to NIL typemod.
Fixes #879.
1 parent 3d08996 commit 65d323e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sources/common/casting-rules.lisp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@
5858
;; otherwide, we do the full dance
5959
(and
6060
(or (and t-s-p (string= type rule-source-type)))
61-
(or (null tm-s-p) (typemod-expr-matches-p typemod-expr typemod))
61+
(or (null tm-s-p) (when typemod
62+
(typemod-expr-matches-p typemod-expr typemod)))
6263
(or (null d-s-p) (string= default rule-source-default))
6364
(or (null u-s-p) (eq unsigned rule-unsigned))
6465
(or (null n-s-p) (eq not-null rule-source-not-null))

0 commit comments

Comments
 (0)