COMP: fix warning
This commit is contained in:
parent
ae3ef64307
commit
508ddaf929
|
@ -3582,7 +3582,7 @@ bool SystemTools::GetLineFromStream(kwsys_ios::istream& is,
|
||||||
// if we read too much then truncate the buffer
|
// if we read too much then truncate the buffer
|
||||||
if (leftToRead > 0)
|
if (leftToRead > 0)
|
||||||
{
|
{
|
||||||
if (length > leftToRead)
|
if (static_cast<long>(length) > leftToRead)
|
||||||
{
|
{
|
||||||
buffer[leftToRead-1] = 0;
|
buffer[leftToRead-1] = 0;
|
||||||
leftToRead = 0;
|
leftToRead = 0;
|
||||||
|
|
Loading…
Reference in New Issue