From 81f18480446d60d9f878c76cd21ee749cfc4d84f Mon Sep 17 00:00:00 2001 From: OpenSauce04 Date: Thu, 16 May 2024 20:00:39 +0000 Subject: [PATCH] Fixed Windows build issues --- src/core/perf_stats.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/perf_stats.cpp b/src/core/perf_stats.cpp index 9f694f75f..ea7f01ca6 100644 --- a/src/core/perf_stats.cpp +++ b/src/core/perf_stats.cpp @@ -133,7 +133,7 @@ double PerfStats::GetStableFrameTimeScale() const { std::scoped_lock lock{object_mutex}; constexpr double FRAME_LENGTH_MILLIS = (1.0 / SCREEN_REFRESH_RATE) * 1000; - const short num_frames = std::min(50ul, current_index + 1); + const size_t num_frames = std::min(50UL, current_index + 1); const double sum = std::accumulate(perf_history.begin() + current_index - num_frames, perf_history.begin() + current_index, 0.0); const double stable_frame_length = sum / num_frames;