summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixTime.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-08-24 17:33:01 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-08-24 17:33:01 (GMT)
commit4ca61724c554f02d90a0655da81372bfbb34f70d (patch)
treee388f2d5174d13d7958188ade843a19c780e54b0 /unix/tclUnixTime.c
parent4a4195dde888f79d304800e2be0ec524ac79203f (diff)
downloadtcl-4ca61724c554f02d90a0655da81372bfbb34f70d.zip
tcl-4ca61724c554f02d90a0655da81372bfbb34f70d.tar.gz
tcl-4ca61724c554f02d90a0655da81372bfbb34f70d.tar.bz2
Update Tcl_Time for 32-bit systems and win64, being able to handle time > 2038. Suggested in in ticket [86dd172271]
Diffstat (limited to 'unix/tclUnixTime.c')
-rw-r--r--unix/tclUnixTime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/tclUnixTime.c b/unix/tclUnixTime.c
index eae7177..20b9a67 100644
--- a/unix/tclUnixTime.c
+++ b/unix/tclUnixTime.c
@@ -95,7 +95,7 @@ TclpGetMicroseconds(void)
Tcl_Time time;
GetTime(&time);
- return ((long long)(unsigned long) time.sec)*1000000 + time.usec;
+ return time.sec * 1000000 + time.usec;
}
/*