mirror of
https://github.com/boostorg/regex.git
synced 2025-07-17 14:22:08 +02:00
Bug fix: changed int to std::ptrdiff_t
[SVN r13572]
This commit is contained in:
@ -476,7 +476,7 @@ std::size_t RegEx::Position(int i)const
|
||||
return pdata->fm[i].matched ? pdata->fm[i].first - pdata->fbase : RegEx::npos;
|
||||
case re_detail::RegExData::type_copy:
|
||||
{
|
||||
std::map<int, int, std::less<int> >::iterator pos = pdata->positions.find(i);
|
||||
std::map<int, std::ptrdiff_t, std::less<int> >::iterator pos = pdata->positions.find(i);
|
||||
if(pos == pdata->positions.end())
|
||||
return RegEx::npos;
|
||||
return (*pos).second;
|
||||
@ -628,3 +628,4 @@ basic_string<char>::replace<const char*>(char* f1, char* f2, const char* i1, con
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user