summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/RegularExpression.hxx.in
diff options
context:
space:
mode:
Diffstat (limited to 'Source/kwsys/RegularExpression.hxx.in')
-rw-r--r--Source/kwsys/RegularExpression.hxx.in16
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]));
}
}