diff --git a/src/lib/util/kformatprivate.cpp b/src/lib/util/kformatprivate.cpp --- a/src/lib/util/kformatprivate.cpp +++ b/src/lib/util/kformatprivate.cpp @@ -336,11 +336,11 @@ ms = qRound64(ms / (qreal)MSecsInSecond) * MSecsInSecond ; } - int hours = ms / MSecsInHour; + const qint64 hours = ms / MSecsInHour; ms = ms % MSecsInHour; - int minutes = ms / MSecsInMinute; + const int minutes = ms / MSecsInMinute; ms = ms % MSecsInMinute; - int seconds = ms / MSecsInSecond; + const int seconds = ms / MSecsInSecond; ms = ms % MSecsInSecond; if ((options & KFormat::InitialDuration) == KFormat::InitialDuration) {