mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 06:01:33 -06:00
Use proper casting
Previously `m_shutdownTimeout * 1000` was calculated in `int` and now it is `qint64`. PR #20982.
This commit is contained in:
committed by
sledgehammer999
parent
e8b585acd8
commit
fe93b6d0d8
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user