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/RegularExpression.hxx.in | |
parent | 94853b493a910989995d38e5686c19725100e411 (diff) | |
download | CMake-ee00616289403ca0c8d7273eeea3a30eeb11a348.zip CMake-ee00616289403ca0c8d7273eeea3a30eeb11a348.tar.gz CMake-ee00616289403ca0c8d7273eeea3a30eeb11a348.tar.bz2 |
COMP:Fixed warnings.
Diffstat (limited to 'Source/kwsys/RegularExpression.hxx.in')
-rw-r--r-- | Source/kwsys/RegularExpression.hxx.in | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/Source/kwsys/RegularExpression.hxx.in b/Source/kwsys/RegularExpression.hxx.in index a681e11..9af53d3 100644 --- a/Source/kwsys/RegularExpression.hxx.in +++ b/Source/kwsys/RegularExpression.hxx.in @@ -323,7 +323,8 @@ inline RegularExpression::~RegularExpression () */ inline kwsys_stl::string::size_type RegularExpression::start () const { - return(this->startp[0] - searchstring); + return static_cast<kwsys_stl::string::size_type>( + this->startp[0] - searchstring); } @@ -332,7 +333,8 @@ inline kwsys_stl::string::size_type RegularExpression::start () const */ inline kwsys_stl::string::size_type RegularExpression::end () const { - return(this->endp[0] - searchstring); + return static_cast<kwsys_stl::string::size_type>( + this->endp[0] - searchstring); } /** @@ -367,7 +369,8 @@ inline void RegularExpression::set_invalid () */ inline kwsys_stl::string::size_type RegularExpression::start(int n) const { - return this->startp[n] - searchstring; + return static_cast<kwsys_stl::string::size_type>( + this->startp[n] - searchstring); } @@ -376,7 +379,8 @@ inline kwsys_stl::string::size_type RegularExpression::start(int n) const */ inline kwsys_stl::string::size_type RegularExpression::end(int n) const { - return this->endp[n] - searchstring; + return static_cast<kwsys_stl::string::size_type>( + this->endp[n] - searchstring); } /** @@ -390,7 +394,9 @@ inline kwsys_stl::string RegularExpression::match(int n) const } else { - return kwsys_stl::string(this->startp[n], this->endp[n] - this->startp[n]); + return kwsys_stl::string(this->startp[n], + static_cast<kwsys_stl::string::size_type>( + this->endp[n] - this->startp[n])); } } |