Skip to content
Snippets Groups Projects
Commit 1aa2d936 authored by ram's avatar ram
Browse files

Fix pprint-setq not to call LENGTH on what might be an improper list.

parent 80006564
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment