summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmFileCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx
index a97802c..447e75e 100644
--- a/Source/cmFileCommand.cxx
+++ b/Source/cmFileCommand.cxx
@@ -219,7 +219,7 @@ bool cmFileCommand::HandleReadCommand(std::vector<std::string> const& args)
long sizeLimit = -1;
if (args.size() >= 5 && args[3] == "LIMIT")
{
- sizeLimit = atof(args[4].c_str());
+ sizeLimit = atoi(args[4].c_str());
}
std::string output;