summaryrefslogtreecommitdiffstats
path: root/Source/cmFileCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-10-06 21:51:34 (GMT)
committerBrad King <brad.king@kitware.com>2009-10-06 21:51:34 (GMT)
commitca95b339fbc9cb5d09c3fed4cefdf351ed31c2d9 (patch)
tree4a63963aac86d4208ca433e3019bbda5050eca2f /Source/cmFileCommand.cxx
parentc6fdff2b223d8527600a7df13638cd0258db4de7 (diff)
downloadCMake-ca95b339fbc9cb5d09c3fed4cefdf351ed31c2d9.zip
CMake-ca95b339fbc9cb5d09c3fed4cefdf351ed31c2d9.tar.gz
CMake-ca95b339fbc9cb5d09c3fed4cefdf351ed31c2d9.tar.bz2
Use integer literal instead of character
The commit "Support more special characters in file(STRINGS)" added code using a 'char' literal as an array index. Some compilers warn about this because char might be a signed type, leading to negative indices. We replace the literal with an integer to avoid the warning.
Diffstat (limited to 'Source/cmFileCommand.cxx')
-rw-r--r--Source/cmFileCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx
index 609e95b..abe6bc9 100644
--- a/Source/cmFileCommand.cxx
+++ b/Source/cmFileCommand.cxx
@@ -535,7 +535,7 @@ bool cmFileCommand::HandleStringsCommand(std::vector<std::string> const& args)
// with some extra characters in strings.
char extra[256]; // = {}; // some compilers do not like this
memset(extra, 0, sizeof(extra));
- extra['\f'] = 1; // FF (form feed)
+ extra[0x0c] = 1; // FF (form feed)
extra[0x14] = 1; // DC4 (device control 4)
// Parse strings out of the file.