diff options
Diffstat (limited to 'Source/cmFileCommand.cxx')
-rw-r--r-- | Source/cmFileCommand.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx index 447e75e..9f8523c 100644 --- a/Source/cmFileCommand.cxx +++ b/Source/cmFileCommand.cxx @@ -231,7 +231,7 @@ bool cmFileCommand::HandleReadCommand(std::vector<std::string> const& args) { if (sizeLimit > 0) { - sizeLimit -= line.size(); + sizeLimit = sizeLimit - static_cast<long>(line.size()); if (has_newline) { sizeLimit--; |