diff options
Diffstat (limited to 'Source/cmFileCommand.cxx')
-rw-r--r-- | Source/cmFileCommand.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx index d1979dd..f9a7dfc 100644 --- a/Source/cmFileCommand.cxx +++ b/Source/cmFileCommand.cxx @@ -301,8 +301,8 @@ bool cmFileCommand::HandleReadCommand(std::vector<std::string> const& args) if (hexOutputArg.IsEnabled()) { // Convert part of the file into hex code - int c; - while((sizeLimit != 0) && (c = file.get(), file)) + char c; + while((sizeLimit != 0) && (file.get(c))) { char hex[4]; sprintf(hex, "%.2x", c&0xff); |