ENH: fix infinite loop from size_t change

This commit is contained in:
Bill Hoffman 2008-02-02 16:18:35 -05:00
parent f2dfa8925b
commit e3b0d3927a
1 changed files with 1 additions and 1 deletions

View File

@ -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)