Avoid warning about sign conversion

This is actually about the conversion of the `-1` literal in case the
process ID is already `qint64` (e.g. on Windows).
This commit is contained in:
Martchus 2023-06-10 18:19:28 +02:00
parent 6f8931a8ad
commit 8b8854d243
1 changed files with 1 additions and 1 deletions

View File

@ -743,7 +743,7 @@ bool SyncthingProcess::waitForReadyRead(int msecs)
*/
qint64 SyncthingProcess::processId() const
{
return m_process ? m_process->child.id() : -1;
return m_process ? static_cast<qint64>(m_process->child.id()) : static_cast<qint64>(-1);
}
/*!