diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-11-26 14:43:22 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-11-26 14:43:22 (GMT) |
commit | bd67b5b669b0f1dbd9482ad278e9b6d4aa174d50 (patch) | |
tree | 7be2cfb31ad94ec8b730cee6747b18593173d33e /generic/tclStrToD.c | |
parent | 5f7f1867c66f6fa72e6525983e722ce8d168247e (diff) | |
download | tcl-bd67b5b669b0f1dbd9482ad278e9b6d4aa174d50.zip tcl-bd67b5b669b0f1dbd9482ad278e9b6d4aa174d50.tar.gz tcl-bd67b5b669b0f1dbd9482ad278e9b6d4aa174d50.tar.bz2 |
Get rid of "register" keyword, forbidden in c++20.
Fix some more warnings, discovered in c20/c++20 mode
Diffstat (limited to 'generic/tclStrToD.c')
-rw-r--r-- | generic/tclStrToD.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclStrToD.c b/generic/tclStrToD.c index 749abcf..2e66864 100644 --- a/generic/tclStrToD.c +++ b/generic/tclStrToD.c @@ -2849,7 +2849,7 @@ QuickConversion( } ilim = ilim1; --k; - d *= 10.0; + d = d * 10.0; ++ieps; } @@ -2866,7 +2866,7 @@ QuickConversion( retval = ckalloc(len + 1); if (ilim == 0) { - d -= 5.; + d = d - 5.; if (d > eps.d) { *retval = '1'; *decpt = k; |