瀏覽代碼

COMP: fix a compiel warning

Ken Martin 18 年之前
父節點
當前提交
d223fc64ad
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;
   if (args.size() >= 5 && args[3] == "LIMIT")
     {
-    sizeLimit = atof(args[4].c_str());
+    sizeLimit = atoi(args[4].c_str());
     }
 
   std::string output;