mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 21:59:54 -06:00
COMP: Fix warning when gcount stream method does not really return std::streamsize.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user