From f6826df4f36623a6f2ed9d63ca259ea59840f364 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Fri, 1 Feb 2008 11:33:14 -0500 Subject: [PATCH] ENH: fix more warnings --- Source/kwsys/SystemInformation.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/kwsys/SystemInformation.cxx b/Source/kwsys/SystemInformation.cxx index 9d35d7631..81a56152c 100644 --- a/Source/kwsys/SystemInformation.cxx +++ b/Source/kwsys/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 ""; }