diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-01-09 09:08:37 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-01-09 09:08:37 (GMT) |
commit | 8fe791a69e3762343bd40b75057777f9f6a87f9b (patch) | |
tree | a1ca4c82103d6fb90b45c5d4bf51cc29ff8fc645 /unix/tclUnixTime.c | |
parent | 402b0c3f5ebe30a27e6fb46ded1f1e1b40d72b5a (diff) | |
parent | 1e55e1eb8cb79e003d6114201622d79c3f9b607b (diff) | |
download | tcl-8fe791a69e3762343bd40b75057777f9f6a87f9b.zip tcl-8fe791a69e3762343bd40b75057777f9f6a87f9b.tar.gz tcl-8fe791a69e3762343bd40b75057777f9f6a87f9b.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.
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/tclUnixTime.c')
-rw-r--r-- | unix/tclUnixTime.c | 2 |
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); |