From 1aa2d93642fe0cdb8b65499e55c486a196ff0c60 Mon Sep 17 00:00:00 2001 From: ram <ram> Date: Fri, 2 Dec 1994 23:27:41 +0000 Subject: [PATCH] Fix pprint-setq not to call LENGTH on what might be an improper list. --- code/pprint.lisp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/pprint.lisp b/code/pprint.lisp index b204f5006..a50d78191 100644 --- a/code/pprint.lisp +++ b/code/pprint.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/pprint.lisp,v 1.21 1994/10/31 04:11:27 ram Exp $") + "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/pprint.lisp,v 1.22 1994/12/02 23:27:41 ram Exp $") ;;; ;;; ********************************************************************** ;;; @@ -1270,7 +1270,7 @@ (pprint-exit-if-list-exhausted) (write-char #\space stream) (pprint-newline :miser stream) - (if (> (length list) 3) + (if (and (consp (cdr list)) (consp (cddr list))) (loop (pprint-indent :current 2 stream) (output-object (pprint-pop) stream) -- GitLab