summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-02-02 21:18:35 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-02-02 21:18:35 (GMT)
commite3b0d3927af4e6a1f9c4dec3c54b04b7f67e3c01 (patch)
treeab8e67d93633d10fb8cb314377f423deb1e895ca /Source
parentf2dfa8925b10705dabcc9726f26193132b3fd416 (diff)
downloadCMake-e3b0d3927af4e6a1f9c4dec3c54b04b7f67e3c01.zip
CMake-e3b0d3927af4e6a1f9c4dec3c54b04b7f67e3c01.tar.gz
CMake-e3b0d3927af4e6a1f9c4dec3c54b04b7f67e3c01.tar.bz2
ENH: fix infinite loop from size_t change
Diffstat (limited to 'Source')
-rw-r--r--Source/kwsys/SystemInformation.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/kwsys/SystemInformation.cxx b/Source/kwsys/SystemInformation.cxx
index 3b9f41a..73c7189 100644
--- a/Source/kwsys/SystemInformation.cxx
+++ b/Source/kwsys/SystemInformation.cxx
@@ -2176,7 +2176,7 @@ int SystemInformationImplementation::RetreiveInformationFromCpuInfoFile()
int currentId = -1;
kwsys_stl::string idc = this->ExtractValueFromCpuInfoFile(buffer,"physical id");
- while(this->CurrentPositionInFile>0)
+ while(this->CurrentPositionInFile != buffer.npos)
{
int id = atoi(idc.c_str());
if(id == currentId)