aboutsummaryrefslogtreecommitdiff
path: root/src/os/win32/ngx_time.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/win32/ngx_time.c')
-rw-r--r--src/os/win32/ngx_time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os/win32/ngx_time.c b/src/os/win32/ngx_time.c
index 8497c538d..0aa2c5e74 100644
--- a/src/os/win32/ngx_time.c
+++ b/src/os/win32/ngx_time.c
@@ -24,6 +24,6 @@ void ngx_gettimeofday(struct timeval *tp)
intervals = ((uint64_t) ft.dwHighDateTime << 32) | ft.dwLowDateTime;
intervals -= 116444736000000000;
- tp->tv_sec = intervals / 10000000;
- tp->tv_usec = (intervals % 10000000) / 10;
+ tp->tv_sec = (long) (intervals / 10000000);
+ tp->tv_usec = (long) ((intervals % 10000000) / 10);
}