diff options
Diffstat (limited to 'src/buildtool/execution_engine/executor')
-rw-r--r-- | src/buildtool/execution_engine/executor/executor.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<double>(t.count()) * f)); } [[nodiscard]] static inline auto MergeProperties( |