mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 02:36:15 +03:00
Use proper casting
Previously `m_shutdownTimeout * 1000` was calculated in `int` and now it is `qint64`. PR #20982.
This commit is contained in:
parent
e8b585acd8
commit
fe93b6d0d8
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue