ports/print/sioyek/files/patch-pdf__viewer_utils.cpp
Robert Clausecker 90d3ed0508 print/sioyek: update to 2.0.0.20250513
- fixes a crash when using the search function.
 - the new version requires qt6
 - ship and install the man page
 - get rid of most now-obsolete site patches

PR:		286827
Reported by:	Nithal El Mejmissani <nithale@gmail.com>
2025-05-18 12:17:52 +02:00

12 lines
388 B
C++

--- pdf_viewer/utils.cpp.orig 2025-05-13 14:36:40 UTC
+++ pdf_viewer/utils.cpp
@@ -1548,7 +1548,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
}