summaryrefslogtreecommitdiffstats
path: root/Source/cmFileCommand.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2021-01-22 15:36:02 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2021-01-27 13:45:44 (GMT)
commita0610cf9e9768eb4c89bf0d0a2f765865512f081 (patch)
tree4e265bc0bcb0618c1793e9fefdc313a7c7d9796a /Source/cmFileCommand.cxx
parentc826461d9cd5d7a6cb32a09ccc44f9e2f3dd9dce (diff)
downloadCMake-a0610cf9e9768eb4c89bf0d0a2f765865512f081.zip
CMake-a0610cf9e9768eb4c89bf0d0a2f765865512f081.tar.gz
CMake-a0610cf9e9768eb4c89bf0d0a2f765865512f081.tar.bz2
clang-tidy: fix `bugprone-signed-char-misuse` warnings
Diffstat (limited to 'Source/cmFileCommand.cxx')
-rw-r--r--Source/cmFileCommand.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx
index b06eedb..576f015 100644
--- a/Source/cmFileCommand.cxx
+++ b/Source/cmFileCommand.cxx
@@ -558,8 +558,7 @@ bool HandleStringsCommand(std::vector<std::string> const& args,
// back subsequent characters
if ((current_str.length() != num_utf8_bytes)) {
for (unsigned int j = 0; j < current_str.size() - 1; j++) {
- c = current_str[current_str.size() - 1 - j];
- fin.putback(static_cast<char>(c));
+ fin.putback(current_str[current_str.size() - 1 - j]);
}
current_str.clear();
}