Explorar o código

COMP: fix a compiel warning

Ken Martin %!s(int64=18) %!d(string=hai) anos
pai
achega
d223fc64ad
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Source/cmFileCommand.cxx

+ 1 - 1
Source/cmFileCommand.cxx

@@ -219,7 +219,7 @@ bool cmFileCommand::HandleReadCommand(std::vector<std::string> const& args)
   long sizeLimit = -1;
   long sizeLimit = -1;
   if (args.size() >= 5 && args[3] == "LIMIT")
   if (args.size() >= 5 && args[3] == "LIMIT")
     {
     {
-    sizeLimit = atof(args[4].c_str());
+    sizeLimit = atoi(args[4].c_str());
     }
     }
 
 
   std::string output;
   std::string output;