diff options
author | David Cole <david.cole@kitware.com> | 2008-11-26 20:41:16 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2008-11-26 20:41:16 (GMT) |
commit | 306d517e8266d4182c17b6d2c812979bceacd542 (patch) | |
tree | 93a378d8f65858e454ce24a49c2a25ec3d5e2067 | |
parent | ceaef94cccf10a02e1bcce29d3cfa6955acf4565 (diff) | |
download | CMake-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.cxx | 2 |
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); |