Added
Link Here
|
0 |
- |
1 |
--- libbase/GnashSleep.h.orig 2022-12-05 11:34:39 UTC |
|
|
2 |
+++ libbase/GnashSleep.h |
3 |
@@ -38,7 +38,7 @@ inline void gnashSleep(time_t useconds) |
4 |
Sleep(useconds / 1000); |
5 |
#else |
6 |
const time_t m = 1000000; |
7 |
- const struct timespec t = { useconds / m, (useconds % m) * 1000 }; |
8 |
+ const struct timespec t = { useconds / m, (long)((useconds % m) * 1000) }; |
9 |
::nanosleep(&t, nullptr); |
10 |
#endif |
11 |
} |