summaryrefslogtreecommitdiffstats
path: root/Source/kwsys
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-02-01 16:33:14 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-02-01 16:33:14 (GMT)
commitf6826df4f36623a6f2ed9d63ca259ea59840f364 (patch)
treef2702aafe97f61410b41238cc20c220f10790226 /Source/kwsys
parent9b55f81522a92523504327e6b1cc79c5f81bdad3 (diff)
downloadCMake-f6826df4f36623a6f2ed9d63ca259ea59840f364.zip
CMake-f6826df4f36623a6f2ed9d63ca259ea59840f364.tar.gz
CMake-f6826df4f36623a6f2ed9d63ca259ea59840f364.tar.bz2
ENH: fix more warnings
Diffstat (limited to 'Source/kwsys')
-rw-r--r--Source/kwsys/SystemInformation.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/kwsys/SystemInformation.cxx b/Source/kwsys/SystemInformation.cxx
index 9d35d76..81a5615 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 "";
}