[cmake-commits] king committed SystemTools.cxx 1.208 1.209

cmake-commits at cmake.org cmake-commits at cmake.org
Wed Nov 7 08:59:31 EST 2007


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

Modified Files:
	SystemTools.cxx 
Log Message:
COMP: Fix warning when gcount stream method does not really return std::streamsize.


Index: SystemTools.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/kwsys/SystemTools.cxx,v
retrieving revision 1.208
retrieving revision 1.209
diff -u -d -r1.208 -r1.209
--- SystemTools.cxx	5 Nov 2007 19:34:36 -0000	1.208
+++ SystemTools.cxx	7 Nov 2007 13:59:29 -0000	1.209
@@ -1597,7 +1597,8 @@
     finDestination.read(dest_buf, nnext);
 
     // If either failed to read assume they are different.
-    if(finSource.gcount() != nnext || finDestination.gcount() != nnext)
+    if(static_cast<kwsys_ios::streamsize>(finSource.gcount()) != nnext ||
+       static_cast<kwsys_ios::streamsize>(finDestination.gcount()) != nnext)
       {
       return true;
       }



More information about the Cmake-commits mailing list