From 461edadd81b1c4d65dc1d60f84fbf796e5f9679a Mon Sep 17 00:00:00 2001 From: Bill Hoffman <bill.hoffman@kitware.com> Date: Fri, 1 Feb 2008 11:36:06 -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 074f6c7..54a1da8 100644 --- a/SystemInformation.cxx +++ b/SystemInformation.cxx @@ -2153,7 +2153,7 @@ int SystemInformationImplementation::RetreiveInformationFromCpuInfoFile() return 0; } - long int fileSize = 0; + size_t fileSize = 0; while(!feof(fd)) { buffer += fgetc(fd); @@ -2809,7 +2809,7 @@ kwsys_stl::string SystemInformationImplementation::ParseValueFromKStat(const cha args.push_back("-p"); kwsys_stl::string command = arguments; - long int start = -1; + size_t start = command.npos; size_t pos = command.find(' ',0); while(pos!=command.npos) { -- GitLab