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:
parent
6f8931a8ad
commit
8b8854d243
|
@ -743,7 +743,7 @@ bool SyncthingProcess::waitForReadyRead(int msecs)
|
||||||
*/
|
*/
|
||||||
qint64 SyncthingProcess::processId() const
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
|
Loading…
Reference in New Issue