From 8b9dcc9e1af74ecd85f3f9f839263cfefe486ead Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 7 Nov 2007 08:59:29 -0500 Subject: COMP: Fix warning when gcount stream method does not really return std::streamsize. --- Source/kwsys/SystemTools.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(finSource.gcount()) != nnext || + static_cast(finDestination.gcount()) != nnext) { return true; } -- cgit v0.12