From fdbe20cf8be9b8fb39bd66be71c2cb9f8fa39db5 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Fri, 2 Mar 2007 10:48:58 -0500 Subject: COMP: fix warnings --- Source/cmFileCommand.cxx | 2 +- Source/kwsys/SystemTools.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx index 447e75e..9f8523c 100644 --- a/Source/cmFileCommand.cxx +++ b/Source/cmFileCommand.cxx @@ -231,7 +231,7 @@ bool cmFileCommand::HandleReadCommand(std::vector const& args) { if (sizeLimit > 0) { - sizeLimit -= line.size(); + sizeLimit = sizeLimit - static_cast(line.size()); if (has_newline) { sizeLimit--; diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index ec7f96f..9892d73 100644 --- a/Source/kwsys/SystemTools.cxx +++ b/Source/kwsys/SystemTools.cxx @@ -3589,13 +3589,13 @@ bool SystemTools::GetLineFromStream(kwsys_ios::istream& is, } else { - leftToRead -= length; + leftToRead -= static_cast(length); } } // Append the data read to the line. line.append(buffer); - sizeLimit -= length; + sizeLimit = sizeLimit - static_cast(length); } // Return the results. -- cgit v0.12