mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 16:53:08 -07: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
ea918da931
commit
5740238933
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…
Add table
Add a link
Reference in a new issue