[cmake-commits] hoffman committed SystemInformation.cxx 1.14 1.15
cmake-commits at cmake.org
cmake-commits at cmake.org
Fri Feb 1 11:33:16 EST 2008
Update of /cvsroot/CMake/CMake/Source/kwsys
In directory public:/mounts/ram/cvs-serv15712
Modified Files:
SystemInformation.cxx
Log Message:
ENH: fix more warnings
Index: SystemInformation.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/kwsys/SystemInformation.cxx,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- SystemInformation.cxx 1 Feb 2008 16:30:08 -0000 1.14
+++ SystemInformation.cxx 1 Feb 2008 16:33:14 -0000 1.15
@@ -245,7 +245,7 @@
unsigned long TotalPhysicalMemory;
unsigned long AvailablePhysicalMemory;
- long int CurrentPositionInFile;
+ size_t CurrentPositionInFile;
// Operating System information
bool QueryOSInformation();
@@ -2135,7 +2135,7 @@
return buffer.substr(pos+2,pos2-pos-2);
}
}
- this->CurrentPositionInFile = -1;
+ this->CurrentPositionInFile = buffer.npos;
return "";
}
More information about the Cmake-commits
mailing list