diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2022-05-17 17:10:30 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-05-24 13:09:43 (GMT) |
commit | 6ff03d463f40176389943100690cf1ca8593d739 (patch) | |
tree | 09ad876ecf9d635108df5374f8c0f5ebb4400506 /Source/cmakemain.cxx | |
parent | 9409e5c04f0a534b53ce2f0e0a81c5e7e70c38f1 (diff) | |
download | CMake-6ff03d463f40176389943100690cf1ca8593d739.zip CMake-6ff03d463f40176389943100690cf1ca8593d739.tar.gz CMake-6ff03d463f40176389943100690cf1ca8593d739.tar.bz2 |
clang-tidy: address `google-readability-casting` lints
At least those involving `static_cast`.
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r-- | Source/cmakemain.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx index 19b922b..97c275e 100644 --- a/Source/cmakemain.cxx +++ b/Source/cmakemain.cxx @@ -409,7 +409,7 @@ int extract_job_number(std::string const& command, } else if (numJobs > INT_MAX) { std::cerr << "The <jobs> value is too large.\n\n"; } else { - jobs = int(numJobs); + jobs = static_cast<int>(numJobs); } } else { std::cerr << "'" << command << "' invalid number '" << jobString @@ -594,7 +594,7 @@ int do_build(int ac, char const* const* av) "is too large.\n\n"; dir.clear(); } else { - jobs = int(numJobs); + jobs = static_cast<int>(numJobs); } } else { std::cerr << "'CMAKE_BUILD_PARALLEL_LEVEL' environment variable\n" |