summaryrefslogtreecommitdiffstats
path: root/generic/tclStrToD.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2015-06-24 13:56:36 (GMT)
committerdgp <dgp@users.sourceforge.net>2015-06-24 13:56:36 (GMT)
commitd150ddf5919c300e7d4b669f558b8b8bdd991a59 (patch)
tree3597c5e6a692112e095222218805e627bb381ff9 /generic/tclStrToD.c
parent71ef3ba08253f4e24d21ad290a5346b7580bf1aa (diff)
parent3ea3c1f2f99b0ca58203368be9c7baeff3f6c5e4 (diff)
downloadtcl-d150ddf5919c300e7d4b669f558b8b8bdd991a59.zip
tcl-d150ddf5919c300e7d4b669f558b8b8bdd991a59.tar.gz
tcl-d150ddf5919c300e7d4b669f558b8b8bdd991a59.tar.bz2
Silence compiler warning.
Diffstat (limited to 'generic/tclStrToD.c')
-rw-r--r--generic/tclStrToD.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/generic/tclStrToD.c b/generic/tclStrToD.c
index c1b3e99..66640ea 100644
--- a/generic/tclStrToD.c
+++ b/generic/tclStrToD.c
@@ -1798,7 +1798,7 @@ RefineApproximation(
double quot; /* Correction term. */
double minincr; /* Lower bound on the absolute value of the
* correction term. */
- int roundToEven; /* Flag == TRUE if we need to invoke
+ int roundToEven = 0; /* Flag == TRUE if we need to invoke
* "round to even" functionality */
double rteSignificand; /* Significand of the round-to-even result */
int rteExponent; /* Exponent of the round-to-even result */
@@ -1915,7 +1915,6 @@ RefineApproximation(
roundToEven = 1;
break;
case MP_GT:
- roundToEven = 0;
break;
}