From ca95b339fbc9cb5d09c3fed4cefdf351ed31c2d9 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 6 Oct 2009 17:51:34 -0400 Subject: 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. --- Source/cmFileCommand.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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. -- cgit v0.12