summaryrefslogtreecommitdiff
path: root/otherlibs
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs')
-rw-r--r--otherlibs/unix/times_win32.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/otherlibs/unix/times_win32.c b/otherlibs/unix/times_win32.c
index 81312a5970..37fdef9d09 100644
--- a/otherlibs/unix/times_win32.c
+++ b/otherlibs/unix/times_win32.c
@@ -20,10 +20,7 @@
static double to_sec(FILETIME ft) {
- ULARGE_INTEGER tmp;
-
- tmp.u.LowPart = ft.dwLowDateTime;
- tmp.u.HighPart = ft.dwHighDateTime;
+ ULARGE_INTEGER tmp = {{ft.dwLowDateTime, ft.dwHighDateTime}};
/* convert to seconds:
GetProcessTimes returns number of 100-nanosecond intervals */