aboutsummaryrefslogtreecommitdiffstats
path: root/x11/contour/files/extra-patch-src_crispy_read__selector.h
blob: 0246b1b3aae20132d226becc89938c515909c718 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- src/crispy/read_selector.h.orig	2025-06-02 12:31:49 UTC
+++ src/crispy/read_selector.h
@@ -108,7 +108,7 @@ class posix_read_selector
         if (timeout.has_value())
         {
             tv = std::make_unique<timeval>(
-                timeval { .tv_sec = timeout->count() / 1000,
+                timeval { .tv_sec = static_cast<int>(timeout->count() / 1000),
                           .tv_usec = static_cast<int>((timeout->count() % 1000) * 1000) });
         }