summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-01-09 09:08:37 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-01-09 09:08:37 (GMT)
commitda5d89d1b8d0d6c43f14f1993ad5e129cbd4ccef (patch)
treea1ca4c82103d6fb90b45c5d4bf51cc29ff8fc645 /unix
parent3367917da33d62c2c1a0818657d02082f4ec4302 (diff)
parentb901129d9617508943f0a9e70ae6de14b10c8fec (diff)
downloadtcl-bug_b87ad7e914.zip
tcl-bug_b87ad7e914.tar.gz
tcl-bug_b87ad7e914.tar.bz2
Fix for [b87ad7e9146832d505f9a430d779c5313c440256|b87ad7e914], rebased to core-8-5-branch (who said fossil doesn't have 'rebase'...), and moved the definition of "struct _timeb t" to the top of the function.bug_b87ad7e914
This branch is ready to be merged to core-8-5-branch, it looks good to me. Thanks to sebres (Dipl. Ing. Sergey G. Brester)
Diffstat (limited to 'unix')
-rw-r--r--unix/tclUnixTime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/tclUnixTime.c b/unix/tclUnixTime.c
index b98f2e1..11b0ecf 100644
--- a/unix/tclUnixTime.c
+++ b/unix/tclUnixTime.c
@@ -161,7 +161,7 @@ TclpGetWideClicks(void)
Tcl_Time time;
(*tclGetTimeProcPtr) (&time, tclTimeClientData);
- now = (Tcl_WideInt) (time.sec*1000000 + time.usec);
+ now = ((Tcl_WideInt)time.sec)*1000000 + time.usec;
} else {
#ifdef MAC_OSX_TCL
now = (Tcl_WideInt) (mach_absolute_time() & INT64_MAX);