From 61474d8f1eb0cbf5f52bc5d1f46afd3ea66f130e Mon Sep 17 00:00:00 2001 From: rtoy <rtoy> Date: Mon, 23 Jun 2008 13:40:23 +0000 Subject: [PATCH] Use the length of CARDINAL-PERIODS instead of a hard-wired literal 21. From Paul Foley. --- code/format.lisp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/format.lisp b/code/format.lisp index 00e9dc2e5..b753fa53d 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.86 2008/03/26 16:43:48 rtoy Exp $") + "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/format.lisp,v 1.87 2008/06/23 13:40:23 rtoy Exp $") ;;; ;;; ********************************************************************** ;;; @@ -946,7 +946,7 @@ (defun format-print-cardinal-aux (stream n period err) (multiple-value-bind (beyond here) (truncate n 1000) - (unless (<= period 21) + (unless (<= period (length cardinal-periods)) (error "Number too large to print in English: ~:D" err)) (unless (zerop beyond) (format-print-cardinal-aux stream beyond (1+ period) err)) -- GitLab