From b1ccfd43e0aa0645b700d40ba92dea19dae1fbfb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 7 Mar 2026 15:26:53 +0000 Subject: [PATCH] Fix narrowing conversion: use int instead of int8_t for remaining_segments Co-authored-by: ashaduri <2302268+ashaduri@users.noreply.github.com> --- src/applib/selftest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applib/selftest.cpp b/src/applib/selftest.cpp index 952ecd8..10a8fbe 100644 --- a/src/applib/selftest.cpp +++ b/src/applib/selftest.cpp @@ -101,7 +101,7 @@ std::chrono::seconds SelfTest::get_remaining_seconds() const // Estimate remaining time based on observed average and remaining segments // remaining_percent_ goes from 100 (start) to 0 (end), in 10% decrements - const int8_t remaining_segments = (remaining_percent_ + 9) / 10; // round up + const int remaining_segments = (remaining_percent_ + 9) / 10; // round up const double estimated_remaining = avg_segment_duration * remaining_segments - timer_.elapsed(); const auto rem_rounded = static_cast(std::round(estimated_remaining));