From 8b8854d2436a95442325f02ced66a6abc96ca0a7 Mon Sep 17 00:00:00 2001 From: Martchus Date: Sat, 10 Jun 2023 18:19:28 +0200 Subject: [PATCH] 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). --- syncthingconnector/syncthingprocess.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncthingconnector/syncthingprocess.cpp b/syncthingconnector/syncthingprocess.cpp index 3c199be..24fcff9 100644 --- a/syncthingconnector/syncthingprocess.cpp +++ b/syncthingconnector/syncthingprocess.cpp @@ -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(m_process->child.id()) : static_cast(-1); } /*!