diff options
Diffstat (limited to 'Source/kwsys/SystemTools.cxx')
-rw-r--r-- | Source/kwsys/SystemTools.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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<long>(length); } } // Append the data read to the line. line.append(buffer); - sizeLimit -= length; + sizeLimit = sizeLimit - static_cast<long>(length); } // Return the results. |