浏览代码

ENH: fix compiler warning

Ken Martin 18 年之前
父节点
当前提交
4456013702
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Source/cmake.cxx

+ 1 - 1
Source/cmake.cxx

@@ -3027,7 +3027,7 @@ int cmake::GetSystemInformation(std::vector<std::string>& args)
       {
       {
       const int bufferSize = 4096;
       const int bufferSize = 4096;
       char buffer[bufferSize];
       char buffer[bufferSize];
-      int n;
+      size_t n;
       while((n = fread(buffer, 1, bufferSize, fin)) > 0)
       while((n = fread(buffer, 1, bufferSize, fin)) > 0)
         {
         {
         for(char* c = buffer; c < buffer+n; ++c)
         for(char* c = buffer; c < buffer+n; ++c)