COMP: fix warnings
This commit is contained in:
parent
a0e26986f7
commit
fdbe20cf8b
|
@ -231,7 +231,7 @@ bool cmFileCommand::HandleReadCommand(std::vector<std::string> const& args)
|
|||
{
|
||||
if (sizeLimit > 0)
|
||||
{
|
||||
sizeLimit -= line.size();
|
||||
sizeLimit = sizeLimit - static_cast<long>(line.size());
|
||||
if (has_newline)
|
||||
{
|
||||
sizeLimit--;
|
||||
|
|
|
@ -3589,13 +3589,13 @@ bool SystemTools::GetLineFromStream(kwsys_ios::istream& is,
|
|||
}
|
||||
else
|
||||
{
|
||||
leftToRead -= length;
|
||||
leftToRead -= static_cast<long>(length);
|
||||
}
|
||||
}
|
||||
|
||||
// Append the data read to the line.
|
||||
line.append(buffer);
|
||||
sizeLimit -= length;
|
||||
sizeLimit = sizeLimit - static_cast<long>(length);
|
||||
}
|
||||
|
||||
// Return the results.
|
||||
|
|
Loading…
Reference in New Issue