From 7df9944604e2ef92abce20c00ea265793b151261 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Tue, 1 Oct 2024 12:23:17 +0200 Subject: Enable bugprone-narrowing-conversions check --- src/buildtool/execution_engine/executor/executor.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/buildtool/execution_engine/executor/executor.hpp') diff --git a/src/buildtool/execution_engine/executor/executor.hpp b/src/buildtool/execution_engine/executor/executor.hpp index 9428a6e4..0018cafc 100644 --- a/src/buildtool/execution_engine/executor/executor.hpp +++ b/src/buildtool/execution_engine/executor/executor.hpp @@ -697,7 +697,8 @@ class ExecutorImpl { [[nodiscard]] static inline auto ScaleTime(std::chrono::milliseconds t, double f) -> std::chrono::milliseconds { - return std::chrono::milliseconds(std::lround(t.count() * f)); + return std::chrono::milliseconds( + std::lround(static_cast(t.count()) * f)); } [[nodiscard]] static inline auto MergeProperties( -- cgit v1.2.3