summaryrefslogtreecommitdiffstats
path: root/generic/tclDate.h
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2017-08-08 15:19:18 (GMT)
committersebres <sebres@users.sourceforge.net>2017-08-08 15:19:18 (GMT)
commit08d9bb4c7c1e3b2912880a8d05f12cfab50c42e0 (patch)
tree0eb46afcc195f1671bf2a81a463b77a469102418 /generic/tclDate.h
parentb20173ba38459fe8186f0d482054aa43a0b88096 (diff)
downloadtcl-08d9bb4c7c1e3b2912880a8d05f12cfab50c42e0.zip
tcl-08d9bb4c7c1e3b2912880a8d05f12cfab50c42e0.tar.gz
tcl-08d9bb4c7c1e3b2912880a8d05f12cfab50c42e0.tar.bz2
fixed overflow of year (resp. julianday), closes ticket [16e4fc3096]; test cases adjusted.
Diffstat (limited to 'generic/tclDate.h')
-rw-r--r--generic/tclDate.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclDate.h b/generic/tclDate.h
index 0fcbd70..d5334b5 100644
--- a/generic/tclDate.h
+++ b/generic/tclDate.h
@@ -144,7 +144,7 @@ typedef struct TclDateFields {
* from the Posix epoch */
int tzOffset; /* Time zone offset in seconds east of
* Greenwich */
- int julianDay; /* Julian Day Number in local time zone */
+ Tcl_WideInt julianDay; /* Julian Day Number in local time zone */
enum {BCE=1, CE=0} era; /* Era */
int gregorian; /* Flag == 1 if the date is Gregorian */
int year; /* Year of the era */
@@ -368,8 +368,8 @@ typedef int ClockScanTokenProc(
typedef enum _CLCKTOK_TYPE {
- CTOKT_DIGIT = 1, CTOKT_PARSER, CTOKT_SPACE, CTOKT_WORD, CTOKT_CHAR,
- CFMTT_INT, CFMTT_WIDE, CFMTT_PROC
+ CTOKT_INT = 1, CTOKT_WIDE, CTOKT_PARSER, CTOKT_SPACE, CTOKT_WORD, CTOKT_CHAR,
+ CFMTT_PROC
} CLCKTOK_TYPE;
typedef struct ClockScanTokenMap {