From 36ba9d23aaed699abe866d560456978e1f0af691 Mon Sep 17 00:00:00 2001
From: Bill Hoffman <bill.hoffman@kitware.com>
Date: Fri, 1 Feb 2008 11:33:14 -0500
Subject: [PATCH] ENH: fix more warnings

---
 SystemInformation.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/SystemInformation.cxx b/SystemInformation.cxx
index 160bf22..30f6bc9 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 "";
 }
 
-- 
GitLab