From a2707cf5fae16566257e290ec874701591165423 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 24 Nov 2023 07:46:35 +0100 Subject: Fix build on 32-bit systems --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 6ab0ef1..e7aa115 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2302,7 +2302,7 @@ int main(int argc, char **argv) { const double this_video_frame_time = clock_get_monotonic_seconds(); const int64_t expected_frames = std::round((this_video_frame_time - start_time_pts) / target_fps); - const int num_frames = framerate_mode == FramerateMode::CONSTANT ? std::max(0L, expected_frames - video_pts_counter) : 1; + const int num_frames = framerate_mode == FramerateMode::CONSTANT ? std::max((int64_t)0LL, expected_frames - video_pts_counter) : 1; if(num_frames > 0) { gsr_capture_capture(capture, frame); -- cgit v1.2.3