[cmake-commits] hoffman committed SystemInformation.cxx 1.16 1.17

cmake-commits at cmake.org cmake-commits at cmake.org
Fri Feb 1 11:36:08 EST 2008


Update of /cvsroot/CMake/CMake/Source/kwsys
In directory public:/mounts/ram/cvs-serv17307

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.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- SystemInformation.cxx	1 Feb 2008 16:34:42 -0000	1.16
+++ SystemInformation.cxx	1 Feb 2008 16:36:06 -0000	1.17
@@ -2153,7 +2153,7 @@
     return 0;
     }
   
-  long int fileSize = 0;
+  size_t fileSize = 0;
   while(!feof(fd))
     {
     buffer += fgetc(fd);
@@ -2809,7 +2809,7 @@
   args.push_back("-p");
   
   kwsys_stl::string command = arguments;
-  long int start = -1;
+  size_t start = command.npos;
   size_t pos = command.find(' ',0);
   while(pos!=command.npos)
     {



More information about the Cmake-commits mailing list