summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/lib/time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/time.c b/source/lib/time.c
index 9fe69eb45ac..762c775ea2c 100644
--- a/source/lib/time.c
+++ b/source/lib/time.c
@@ -1112,7 +1112,7 @@ struct timespec nt_time_to_unix_timespec(NTTIME *nt)
return ret;
}
- if (((time_t)d) >= TIME_T_MAX) {
+ if (d >= (uint64)TIME_T_MAX) {
ret.tv_sec = TIME_T_MAX;
ret.tv_nsec = 0;
return ret;