aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/gnash/files/patch-libbase_GnashSleep.h
blob: c44b0e8a29c2a68a3aa40dbb812472b643484e6b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- libbase/GnashSleep.h.orig	2022-12-05 11:34:39 UTC
+++ libbase/GnashSleep.h
@@ -38,7 +38,7 @@ inline void gnashSleep(time_t useconds)
     Sleep(useconds / 1000);
 #else
     const time_t m = 1000000;
-    const struct timespec t = { useconds / m, (useconds % m) * 1000 };
+    const struct timespec t = { useconds / m, (long)((useconds % m) * 1000) };
     ::nanosleep(&t, nullptr);
 #endif
 }