summaryrefslogtreecommitdiffstats
path: root/Source/kwsys
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-11-07 13:59:29 (GMT)
committerBrad King <brad.king@kitware.com>2007-11-07 13:59:29 (GMT)
commit8b9dcc9e1af74ecd85f3f9f839263cfefe486ead (patch)
tree4c5a4bf07b865c46e5e78fa6763fa4b7b83453ba /Source/kwsys
parent00cfa0ebed42b7daf2acbfe3297c5f630b570d4e (diff)
downloadCMake-8b9dcc9e1af74ecd85f3f9f839263cfefe486ead.zip
CMake-8b9dcc9e1af74ecd85f3f9f839263cfefe486ead.tar.gz
CMake-8b9dcc9e1af74ecd85f3f9f839263cfefe486ead.tar.bz2
COMP: Fix warning when gcount stream method does not really return std::streamsize.
Diffstat (limited to 'Source/kwsys')
-rw-r--r--Source/kwsys/SystemTools.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx
index accfdd9..0f837f7 100644
--- a/Source/kwsys/SystemTools.cxx
+++ b/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;
}