diff options
author | Robert Löhning <robert.loehning@qt.io> | 2021-04-20 21:50:14 +0200 |
---|---|---|
committer | Robert Löhning <robert.loehning@qt.io> | 2021-04-21 15:05:09 +0200 |
commit | 41af29238ce08d025ad4e6d1df6c4b38ae46f929 (patch) | |
tree | 20a70a934fc9fac01f069a371b9672ea2453ea50 /src | |
parent | 3edba4b3d580500574cc06b8a92cdb19b4b092a6 (diff) |
QDateTime: Avoid compiler warning about issue impossible at runtime
Change-Id: I6e5f76582c4caff31c56bfb4badfcc318f299f51
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/time/qdatetime.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/time/qdatetime.cpp b/src/corelib/time/qdatetime.cpp index f627836a46..5b726f0c7c 100644 --- a/src/corelib/time/qdatetime.cpp +++ b/src/corelib/time/qdatetime.cpp @@ -2629,7 +2629,7 @@ static inline bool millisInSystemRange(qint64 millis, qint64 slack = 0) return millis <= msecsMax + slack; #else if constexpr (std::numeric_limits<qint64>::max() / MSECS_PER_SEC > TIME_T_MAX) { - const qint64 msecsMax = TIME_T_MAX * MSECS_PER_SEC; + const qint64 msecsMax = quint64(TIME_T_MAX) * MSECS_PER_SEC; return millis <= msecsMax + slack; } else { return true; |