From 26b9b77e0bdb82236b51f36ae8450147bfb3d4ff Mon Sep 17 00:00:00 2001 From: Brad King <brad.king@kitware.com> Date: Wed, 7 Nov 2007 08:59:29 -0500 Subject: [PATCH] COMP: Fix warning when gcount stream method does not really return std::streamsize. --- SystemTools.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SystemTools.cxx b/SystemTools.cxx index 9cbe47e..f3d0c62 100644 --- a/SystemTools.cxx +++ b/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; } -- GitLab