From c84446a22c6f3e719c0b19432852cf420cf110ce Mon Sep 17 00:00:00 2001 From: rtoy <rtoy> Date: Fri, 25 Feb 2005 18:21:21 +0000 Subject: [PATCH] A sequence type of NULL isn't too hairy for the sequence functions. --- code/seq.lisp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/seq.lisp b/code/seq.lisp index e44a670af..4988b069e 100644 --- a/code/seq.lisp +++ b/code/seq.lisp @@ -5,7 +5,7 @@ ;;; Carnegie Mellon University, and has been placed in the public domain. ;;; (ext:file-comment - "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/seq.lisp,v 1.51 2004/12/21 17:59:58 rtoy Exp $") + "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/seq.lisp,v 1.52 2005/02/25 18:21:21 rtoy Exp $") ;;; ;;; ********************************************************************** ;;; @@ -77,7 +77,9 @@ :format-control "NIL output type invalid for this sequence function." :format-arguments ()))) - ((or (union-type-p type) (member-type-p type)) + ((or (union-type-p type) + (and (member-type-p type) + (not (eq type kernel:*null-type*)))) (error 'simple-type-error :datum type :exptected-type 'sequence -- GitLab