summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/SystemTools.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2007-03-01 19:52:26 (GMT)
committerKen Martin <ken.martin@kitware.com>2007-03-01 19:52:26 (GMT)
commit508ddaf929da47e1bf54fc3d348792694fb4b1b9 (patch)
tree1b2faeeb18d058a0674e4e27ffbe83a4c610a131 /Source/kwsys/SystemTools.cxx
parentae3ef643071099ae1fd76d0b7dfbf4459c100519 (diff)
downloadCMake-508ddaf929da47e1bf54fc3d348792694fb4b1b9.zip
CMake-508ddaf929da47e1bf54fc3d348792694fb4b1b9.tar.gz
CMake-508ddaf929da47e1bf54fc3d348792694fb4b1b9.tar.bz2
COMP: fix warning
Diffstat (limited to 'Source/kwsys/SystemTools.cxx')
-rw-r--r--Source/kwsys/SystemTools.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx
index cbc1859..ec7f96f 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<long>(length) > leftToRead)
{
buffer[leftToRead-1] = 0;
leftToRead = 0;