Added
Link Here
|
1 |
# Official fixes for 32-bit compilation |
2 |
--- src/vblank.c.orig 2024-09-28 23:22:13 UTC |
3 |
+++ src/vblank.c |
4 |
@@ -409,7 +409,7 @@ static void handle_present_complete_notify(struct pres |
5 |
|
6 |
struct timespec now; |
7 |
clock_gettime(CLOCK_MONOTONIC, &now); |
8 |
- auto now_us = (unsigned long)(now.tv_sec * 1000000L + now.tv_nsec / 1000); |
9 |
+ auto now_us = (uint64_t)now.tv_sec * 1000000UL + (uint64_t)now.tv_nsec / 1000; |
10 |
|
11 |
// X sometimes sends duplicate/bogus MSC events, when screen has just been turned |
12 |
// off. Don't use the msc value in these events. We treat this as not receiving a |