diff options
author | jan.nijtmans <jan.nijtmans@noemail.net> | 2017-01-09 09:08:37 (GMT) |
---|---|---|
committer | jan.nijtmans <jan.nijtmans@noemail.net> | 2017-01-09 09:08:37 (GMT) |
commit | 8b2a9aa63a50751e90379086732298f79dc5ec5f (patch) | |
tree | a1ca4c82103d6fb90b45c5d4bf51cc29ff8fc645 /unix/tclUnixTime.c | |
parent | f3f5d6ce34f31ef59d92fbce3c06043814efba97 (diff) | |
parent | 98ea377780985cf422ebe8cbae5d5a526d49c324 (diff) | |
download | tcl-8b2a9aa63a50751e90379086732298f79dc5ec5f.zip tcl-8b2a9aa63a50751e90379086732298f79dc5ec5f.tar.gz tcl-8b2a9aa63a50751e90379086732298f79dc5ec5f.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)
FossilOrigin-Name: b23e0b20c4702829328b476d647586107afffec9
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); |