summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/lib/time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/time.c b/source3/lib/time.c
index 9fe69eb45a..762c775ea2 100644
--- a/source3/lib/time.c
+++ b/source3/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;