Skip to content

Commit

Permalink
QDateTime: Avoid compiler warning about issue impossible at runtime
Browse files Browse the repository at this point in the history
Change-Id: I6e5f76582c4caff31c56bfb4badfcc318f299f51
Reviewed-by: Edward Welbourne <[email protected]>
  • Loading branch information
rlohning committed Apr 21, 2021
1 parent 3edba4b commit 41af292
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/corelib/time/qdatetime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 41af292

Please sign in to comment.