From 508ddaf929da47e1bf54fc3d348792694fb4b1b9 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Thu, 1 Mar 2007 14:52:26 -0500 Subject: [PATCH] COMP: fix warning --- Source/kwsys/SystemTools.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index cbc185942..ec7f96f33 100644 --- a/Source/kwsys/SystemTools.cxx +++ b/Source/kwsys/SystemTools.cxx @@ -3582,7 +3582,7 @@ bool SystemTools::GetLineFromStream(kwsys_ios::istream& is, // if we read too much then truncate the buffer if (leftToRead > 0) { - if (length > leftToRead) + if (static_cast(length) > leftToRead) { buffer[leftToRead-1] = 0; leftToRead = 0;