summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_engine/executor/executor.hpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-10-01 12:23:17 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-10-07 13:37:39 +0200
commit7df9944604e2ef92abce20c00ea265793b151261 (patch)
treedf758ede71200d463db1b2c05dd03e8cd0a76765 /src/buildtool/execution_engine/executor/executor.hpp
parentf56805ddde51ffcfdd6123300b6c049764a86980 (diff)
downloadjustbuild-7df9944604e2ef92abce20c00ea265793b151261.tar.gz
Enable bugprone-narrowing-conversions check
Diffstat (limited to 'src/buildtool/execution_engine/executor/executor.hpp')
-rw-r--r--src/buildtool/execution_engine/executor/executor.hpp3
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(