summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2008-11-26 20:41:16 (GMT)
committerDavid Cole <david.cole@kitware.com>2008-11-26 20:41:16 (GMT)
commit306d517e8266d4182c17b6d2c812979bceacd542 (patch)
tree93a378d8f65858e454ce24a49c2a25ec3d5e2067
parentceaef94cccf10a02e1bcce29d3cfa6955acf4565 (diff)
downloadCMake-306d517e8266d4182c17b6d2c812979bceacd542.zip
CMake-306d517e8266d4182c17b6d2c812979bceacd542.tar.gz
CMake-306d517e8266d4182c17b6d2c812979bceacd542.tar.bz2
COMP: Using the proper type for local variables can eliminate compiler warnings.
-rw-r--r--Source/cmSystemTools.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index e47ca19..6c49a14 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -1612,7 +1612,7 @@ void cmSystemTools::RestoreEnv(const std::vector<std::string>& env)
{
std::string var(*eit);
- int pos = var.find("=");
+ std::string::size_type pos = var.find("=");
if (pos != std::string::npos)
{
var = var.substr(0, pos);