summaryrefslogtreecommitdiffstats
path: root/generic/tclClock.c
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2005-11-30 15:09:41 (GMT)
committerKevin B Kenny <kennykb@acm.org>2005-11-30 15:09:41 (GMT)
commitd0c87821d461d3f7578b3788526f372e48c64922 (patch)
tree8042015ae074f0cc94566ced61b61e7fa2bb0086 /generic/tclClock.c
parent41e660a3584fdc12b1167f08b151101d1be76d3f (diff)
downloadtcl-d0c87821d461d3f7578b3788526f372e48c64922.zip
tcl-d0c87821d461d3f7578b3788526f372e48c64922.tar.gz
tcl-d0c87821d461d3f7578b3788526f372e48c64922.tar.bz2
silenced compiler warning about big constant
Diffstat (limited to 'generic/tclClock.c')
-rw-r--r--generic/tclClock.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/generic/tclClock.c b/generic/tclClock.c
index a52ca26..891ea25 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.44 2005/11/30 14:48:04 kennykb Exp $
+ * RCS: @(#) $Id: tclClock.c,v 1.45 2005/11/30 15:09:41 kennykb Exp $
*/
#include "tclInt.h"
@@ -29,8 +29,10 @@
* Constants
*/
-#define JULIAN_SEC_POSIX_EPOCH ((Tcl_WideInt) 210866803200)
+#define JULIAN_DAY_POSIX_EPOCH 2440588
#define SECONDS_PER_DAY 86400
+#define JULIAN_SEC_POSIX_EPOCH (((Tcl_WideInt) JULIAN_DAY_POSIX_EPOCH) \
+ * SECONDS_PER_DAY)
#define FOUR_CENTURIES 146097 /* days */
#define JDAY_1_JAN_1_CE_JULIAN 1721424
#define JDAY_1_JAN_1_CE_GREGORIAN 1721426