summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-02-23 12:20:34 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-02-23 12:20:34 (GMT)
commitefce255dd9821b8dacf7c24731015f2eea93a96b (patch)
tree78e4eb4bfdf3e4739b36a88dd7bf94221fc21247 /unix
parent21134c44f3434c701ef4f166be74f389cd3425bd (diff)
parent6d23f73e8aba5d1c6ed987c139b2b719be84a254 (diff)
downloadtcl-efce255dd9821b8dacf7c24731015f2eea93a96b.zip
tcl-efce255dd9821b8dacf7c24731015f2eea93a96b.tar.gz
tcl-efce255dd9821b8dacf7c24731015f2eea93a96b.tar.bz2
Merge 9.0. Update documentation
Diffstat (limited to 'unix')
-rw-r--r--unix/tclUnixTime.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/unix/tclUnixTime.c b/unix/tclUnixTime.c
index 94a666a..c44b10c 100644
--- a/unix/tclUnixTime.c
+++ b/unix/tclUnixTime.c
@@ -127,8 +127,8 @@ TclpGetClicks(void)
Tcl_Time time;
GetTime(&time);
- now = ((unsigned long long)(unsigned long) time.sec)*1000000 +
- time.usec;
+ now = ((unsigned long long)(time.sec)*1000000ULL) +
+ (unsigned long long)(time.usec);
} else {
/*
* A semi-NativeGetTime, specialized to clicks.
@@ -141,7 +141,8 @@ TclpGetClicks(void)
Tcl_Time time;
GetTime(&time);
- now = ((unsigned long long) time.sec)*1000000 + time.usec;
+ now = ((unsigned long long)(time.sec)*1000000ULL) +
+ (unsigned long long)(time.usec);
#endif /* NO_GETTOD */
return now;