diff options
author | Francois Bertel <francois.bertel@kitware.com> | 2009-03-17 14:48:24 (GMT) |
---|---|---|
committer | Francois Bertel <francois.bertel@kitware.com> | 2009-03-17 14:48:24 (GMT) |
commit | ee00616289403ca0c8d7273eeea3a30eeb11a348 (patch) | |
tree | 3f59baf3c67cf87dd6e51fa43293bb9ee3280df1 /Source/kwsys/Glob.cxx | |
parent | 94853b493a910989995d38e5686c19725100e411 (diff) | |
download | CMake-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.cxx | 6 |
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] == '*') && |