summaryrefslogtreecommitdiffstats
path: root/generic/tclStrToD.c
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2005-08-24 15:15:43 (GMT)
committerKevin B Kenny <kennykb@acm.org>2005-08-24 15:15:43 (GMT)
commitd1b987be17d4f05e79530f9f0896284fbe354205 (patch)
tree3c76e1ee621cc0142f9b05d9112496e42341adcb /generic/tclStrToD.c
parenta11893b13e3502d4fd1aa996889670a34248519b (diff)
downloadtcl-d1b987be17d4f05e79530f9f0896284fbe354205.zip
tcl-d1b987be17d4f05e79530f9f0896284fbe354205.tar.gz
tcl-d1b987be17d4f05e79530f9f0896284fbe354205.tar.bz2
fix formatting of fp number with smallest significand
Diffstat (limited to 'generic/tclStrToD.c')
-rwxr-xr-xgeneric/tclStrToD.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclStrToD.c b/generic/tclStrToD.c
index b28a60e..68f6c30 100755
--- a/generic/tclStrToD.c
+++ b/generic/tclStrToD.c
@@ -15,7 +15,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclStrToD.c,v 1.7 2005/07/16 21:29:23 kennykb Exp $
+ * RCS: @(#) $Id: tclStrToD.c,v 1.8 2005/08/24 15:15:45 kennykb Exp $
*
*----------------------------------------------------------------------
*/
@@ -959,7 +959,7 @@ TclDoubleDigits(char * strPtr, /* Buffer in which to store the result, must
* smaller exponent when going to e's predecessor.
*/
- rfac2 += bits + log2FLT_RADIX - 1;
+ rfac2 += bits + log2FLT_RADIX + 1;
sfac2 = 1 + log2FLT_RADIX;
mplusfac2 = bits + log2FLT_RADIX;
mminusfac2 = bits;