Browse Source

COMP: Fix warning when gcount stream method does not really return std::streamsize.

Brad King 18 years ago
parent
commit
8b9dcc9e1a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Source/kwsys/SystemTools.cxx

+ 2 - 1
Source/kwsys/SystemTools.cxx

@@ -1597,7 +1597,8 @@ bool SystemTools::FilesDiffer(const char* source,
     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;
       }