summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/serialport/qwinoverlappedionotifier.cpp4
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();