From 90461ae9f7953a5ed024d1b1b83efc4ed2105d4a Mon Sep 17 00:00:00 2001 From: Karsten Heimrich Date: Mon, 18 Oct 2021 11:12:17 +0200 Subject: Fix error comparison of integer expressions of different signedness Change-Id: Iaff90a303703f82b1aee856caba1965309ae6981 Reviewed-by: Qt CI Bot Reviewed-by: Joerg Bornemann --- src/serialport/qwinoverlappedionotifier.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/serialport/qwinoverlappedionotifier.cpp b/src/serialport/qwinoverlappedionotifier.cpp index f29bae0..195eaac 100644 --- a/src/serialport/qwinoverlappedionotifier.cpp +++ b/src/serialport/qwinoverlappedionotifier.cpp @@ -313,13 +313,13 @@ OVERLAPPED *QWinOverlappedIoNotifierPrivate::waitForAnyNotified(QDeadlineTimer d return 0; } - DWORD msecs = deadline.remainingTime(); + qint64 msecs = deadline.remainingTime(); if (msecs == 0) iocp->drainQueue(); if (msecs == -1) msecs = INFINITE; - const DWORD wfso = WaitForSingleObject(hSemaphore, msecs); + const DWORD wfso = WaitForSingleObject(hSemaphore, DWORD(msecs)); switch (wfso) { case WAIT_OBJECT_0: return dispatchNextIoResult(); -- cgit v1.2.1