Commit e2649952 authored by ram's avatar ram
Browse files

Changed FLONUM-TO-STRING to consider widths < 1 to be 1 to prevent infinite

looping in those cases.
parent 45d60f33
......@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
(ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/print.lisp,v 1.35 1992/02/11 16:56:30 ram Exp $")
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/print.lisp,v 1.36 1992/02/12 16:11:24 ram Exp $")
;;;
;;; **********************************************************************
;;;
......@@ -1356,7 +1356,8 @@
(integer-decode-float x)
(let* ((precision (float-precision x))
(digits (float-digits x))
(fudge (- digits precision)))
(fudge (- digits precision))
(width (if width (max width 1) nil)))
(float-string (ash sig (- fudge)) (+ exp fudge) precision width
fdigits scale fmin))))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment