Use proper casting

Previously `m_shutdownTimeout * 1000` was calculated in `int` and now it
is `qint64`.

PR #20982.
This commit is contained in:
Chocobo1 2024-06-24 15:02:48 +08:00 committed by sledgehammer999
parent e8b585acd8
commit fe93b6d0d8
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2

View file

@ -611,7 +611,7 @@ SessionImpl::~SessionImpl()
{
m_nativeSession->pause();
const qint64 timeout = (m_shutdownTimeout >= 0) ? (m_shutdownTimeout * 1000) : -1;
const auto timeout = (m_shutdownTimeout >= 0) ? (static_cast<qint64>(m_shutdownTimeout) * 1000) : -1;
const QDeadlineTimer shutdownDeadlineTimer {timeout};
if (m_torrentsQueueChanged)