diff --git a/SystemInformation.cxx b/SystemInformation.cxx index 160bf22fd85dcb75fd195b763de7c3b0ad1eac41..30f6bc9b3a7781cd9e92a6879ea82666543e7ad2 100644 --- a/SystemInformation.cxx +++ b/SystemInformation.cxx @@ -245,7 +245,7 @@ protected: unsigned long TotalPhysicalMemory; unsigned long AvailablePhysicalMemory; - long int CurrentPositionInFile; + size_t CurrentPositionInFile; // Operating System information bool QueryOSInformation(); @@ -2135,7 +2135,7 @@ kwsys_stl::string SystemInformationImplementation::ExtractValueFromCpuInfoFile(k return buffer.substr(pos+2,pos2-pos-2); } } - this->CurrentPositionInFile = -1; + this->CurrentPositionInFile = buffer.npos; return ""; }