diff options
author | andreas_kupries <akupries@shaw.ca> | 2010-11-30 20:59:27 (GMT) |
---|---|---|
committer | andreas_kupries <akupries@shaw.ca> | 2010-11-30 20:59:27 (GMT) |
commit | 8bfaa28fc5c5036cf6c871ac5e19ab759b55d6d7 (patch) | |
tree | 1690548d2a2cd82215101f59ba6632c4b01cc523 /generic/tclClock.c | |
parent | 362fdaa163a9d67ad72d609205e480cebfe0aab6 (diff) | |
download | tcl-8bfaa28fc5c5036cf6c871ac5e19ab759b55d6d7.zip tcl-8bfaa28fc5c5036cf6c871ac5e19ab759b55d6d7.tar.gz tcl-8bfaa28fc5c5036cf6c871ac5e19ab759b55d6d7.tar.bz2 |
* generic/tclInt.decls: Backport of Kevin B. Kenny's work on
* generic/tclInt.h: the Tcl Head, with help from Jeff Hobbs.
* generic/tclStrToD.c:
* generic/tclTest.c:
* generic/tclTomMath.decls:
* generic/tclUtil.c:
* tests/util.test:
* unix/Makefile.in:
* win/Makefile.in:
* win/makefile.vc: Rewrite of Tcl_PrintDouble and TclDoubleDigits
that (a) fixes a severe performance problem with floating point
shimmering reported by Karl Lehenbauer, (b) allows TclDoubleDigits
to generate the digit strings for 'e' and 'f' format, so that it
can be used for tcl_precision != 0 (and possibly later for [format]),
(c) fixes [Bug 3120139] by making TclPrintDouble inherently
locale-independent, (d) adds test cases to util.test for
correct rounding in difficult cases of TclDoubleDigits where fixed-
precision results are requested. (e) adds test cases to util.test for
the controversial aspects of [Bug 3105247]. As a side effect, two
more modules from libtommath (bn_mp_set_int.c and bn_mp_init_set_int.c)
are brought into the build, since the new code uses them.
* generic/tclIntDecls.h:
* generic/tclStubInit.c:
* generic/tclTomMathDecls.h: Regenerated.
Diffstat (limited to 'generic/tclClock.c')
-rw-r--r-- | generic/tclClock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclClock.c b/generic/tclClock.c index 7df1759..075e3a2 100644 --- a/generic/tclClock.c +++ b/generic/tclClock.c @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclClock.c,v 1.66.2.3 2009/11/12 16:31:15 dgp Exp $ + * RCS: @(#) $Id: tclClock.c,v 1.66.2.4 2010/11/30 20:59:27 andreas_kupries Exp $ */ #include "tclInt.h" @@ -1513,7 +1513,7 @@ GetJulianDayFromEraYearMonthDay( fields->julianDay = JDAY_1_JAN_1_CE_JULIAN - 1 + fields->dayOfMonth + daysInPriorMonths[year%4 == 0][month - 1] - + (365 * ym1) + + (ONE_YEAR * ym1) + ym1o4; } } |