diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-09-20 16:07:38 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-09-20 16:07:38 (GMT) |
commit | b0a98593be2e45bf26af4553f4029b1dd1194b55 (patch) | |
tree | 35e3a5084cacfa0937d1f62881488aee2aa90c1b /generic/tkBind.c | |
parent | 386ce84f14735c90a4fea74e185126dcd7acd93b (diff) | |
parent | f8ca82ac5b16009ef945379f1f3ac64544c2590b (diff) | |
download | tk-b0a98593be2e45bf26af4553f4029b1dd1194b55.zip tk-b0a98593be2e45bf26af4553f4029b1dd1194b55.tar.gz tk-b0a98593be2e45bf26af4553f4029b1dd1194b55.tar.bz2 |
Merge 8.6
Diffstat (limited to 'generic/tkBind.c')
-rw-r--r-- | generic/tkBind.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/generic/tkBind.c b/generic/tkBind.c index 0f885f3..e8f15c9 100644 --- a/generic/tkBind.c +++ b/generic/tkBind.c @@ -817,9 +817,12 @@ GetButtonNumber( static Time CurrentTimeInMilliSecs(void) { - Tcl_Time now; - Tcl_GetTime(&now); - return ((Time) now.sec)*1000 + ((Time) now.usec)/1000; + struct { + Tcl_Time now; + Tcl_Time dummy; /* Spare, in case Tcl_Time has 32-bit fields */ + } t; + Tcl_GetTime(&t.now); + return ((Time) t.now.sec)*1000 + ((Time) t.now.usec)/1000; } static Info |