COMP: fix warning

This commit is contained in:
Ken Martin 2007-03-01 14:52:26 -05:00
parent ae3ef64307
commit 508ddaf929
1 changed files with 1 additions and 1 deletions

View File

@ -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<long>(length) > leftToRead)
{
buffer[leftToRead-1] = 0;
leftToRead = 0;