mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
clang-tidy: address google-readability-casting lints
At least those involving `static_cast`.
This commit is contained in:
@@ -460,8 +460,8 @@ bool cmForEachCommand(std::vector<std::string> const& args,
|
||||
// in the `fb->Args` vector. The first item is the iteration variable
|
||||
// name...
|
||||
const std::size_t iter_cnt = 2u +
|
||||
int(start < stop) * (stop - start) / std::abs(step) +
|
||||
int(start > stop) * (start - stop) / std::abs(step);
|
||||
static_cast<int>(start < stop) * (stop - start) / std::abs(step) +
|
||||
static_cast<int>(start > stop) * (start - stop) / std::abs(step);
|
||||
fb->Args.resize(iter_cnt);
|
||||
fb->Args.front() = args.front();
|
||||
auto cc = start;
|
||||
|
||||
Reference in New Issue
Block a user