summaryrefslogtreecommitdiff
path: root/print/sioyek/files/patch-pdf__viewer_utils.cpp
blob: f5214ad89f03880cf2721cfcfb72e3b341c51c2a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- pdf_viewer/utils.cpp.orig	2023-03-04 13:46:24 UTC
+++ pdf_viewer/utils.cpp
@@ -1194,7 +1194,7 @@ void sleep_ms(unsigned int ms) {
 #ifdef Q_OS_WIN
 	Sleep(ms);
 #else
-	struct timespec ts = { ms / 1000, (ms % 1000) * 1000 * 1000 };
+	struct timespec ts = { static_cast<time_t>(ms / 1000), static_cast<long>((ms % 1000) * 1000 * 1000) };
 	nanosleep(&ts, NULL);
 #endif
 }