QDateTime: Avoid compiler warning about issue impossible at runtime
Change-Id: I6e5f76582c4caff31c56bfb4badfcc318f299f51 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>bb10
parent
3edba4b3d5
commit
41af29238c
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue