diff options
author | Karsten Heimrich <karsten.heimrich@qt.io> | 2021-10-18 11:12:17 +0200 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@qt.io> | 2021-10-19 10:14:24 +0200 |
commit | 90461ae9f7953a5ed024d1b1b83efc4ed2105d4a (patch) | |
tree | 3c7ba43814009cd8ac3d46268d72ebab3946e35a | |
parent | 4ff9993d9f2e991f2da1885a694d4f3a61c9af73 (diff) | |
download | qtserialport-90461ae9f7953a5ed024d1b1b83efc4ed2105d4a.tar.gz |
Fix error comparison of integer expressions of different signedness
Change-Id: Iaff90a303703f82b1aee856caba1965309ae6981
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
-rw-r--r-- | src/serialport/qwinoverlappedionotifier.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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(); |