From 88b6f9d5290f6b146d1f5808a1924670495b61ae Mon Sep 17 00:00:00 2001
From: toy <toy>
Date: Fri, 25 Oct 2002 14:36:20 +0000
Subject: [PATCH] Change apply to reduce.  This works around a bug noted by
 Peter Van Eynde when byte-compiling the #\< format directive.  Solution by
 Christophe Rhodes.  (This seems to be really a bug in the byte-compiler.)

---
 code/format.lisp | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/code/format.lisp b/code/format.lisp
index 34d546f1c..9ad30be7b 100644
--- a/code/format.lisp
+++ b/code/format.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/format.lisp,v 1.45 2002/10/15 15:50:24 toy Exp $")
+  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/format.lisp,v 1.46 2002/10/25 14:36:20 toy Exp $")
 ;;;
 ;;; **********************************************************************
 ;;;
@@ -2093,7 +2093,9 @@
 					 close params string end)
 	   (expand-format-logical-block prefix per-line-p insides
 					suffix atsignp))
-	 (let ((count (apply #'+ (mapcar (lambda (x) (count-if #'illegal-inside-justification-p x)) segments))))
+	 (let ((count (reduce #'+ (mapcar (lambda (x)
+					    (count-if #'illegal-inside-justification-p x))
+					  segments))))
 	   (when (> count 0)
 	     ;; ANSI specifies that "an error is signalled" in this
 	     ;; situation.
-- 
GitLab