summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/Glob.cxx
diff options
context:
space:
mode:
authorFrancois Bertel <francois.bertel@kitware.com>2009-03-17 14:48:24 (GMT)
committerFrancois Bertel <francois.bertel@kitware.com>2009-03-17 14:48:24 (GMT)
commitee00616289403ca0c8d7273eeea3a30eeb11a348 (patch)
tree3f59baf3c67cf87dd6e51fa43293bb9ee3280df1 /Source/kwsys/Glob.cxx
parent94853b493a910989995d38e5686c19725100e411 (diff)
downloadCMake-ee00616289403ca0c8d7273eeea3a30eeb11a348.zip
CMake-ee00616289403ca0c8d7273eeea3a30eeb11a348.tar.gz
CMake-ee00616289403ca0c8d7273eeea3a30eeb11a348.tar.bz2
COMP:Fixed warnings.
Diffstat (limited to 'Source/kwsys/Glob.cxx')
-rw-r--r--Source/kwsys/Glob.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/kwsys/Glob.cxx b/Source/kwsys/Glob.cxx
index f5dc512..21efca8 100644
--- a/Source/kwsys/Glob.cxx
+++ b/Source/kwsys/Glob.cxx
@@ -380,13 +380,13 @@ bool Glob::FindFiles(const kwsys_stl::string& inexpr)
}
kwsys_stl::string fexpr = expr;
- int skip = 0;
- int last_slash = 0;
+ kwsys_stl::string::size_type skip = 0;
+ kwsys_stl::string::size_type last_slash = 0;
for ( cc = 0; cc < expr.size(); cc ++ )
{
if ( cc > 0 && expr[cc] == '/' && expr[cc-1] != '\\' )
{
- last_slash = static_cast<int>(cc);
+ last_slash = cc;
}
if ( cc > 0 &&
(expr[cc] == '[' || expr[cc] == '?' || expr[cc] == '*') &&