Patches for vc7+stlport

[SVN r20951]
This commit is contained in:
John Maddock
2003-11-26 11:44:53 +00:00
parent 27875c1e55
commit c642977acd
2 changed files with 2 additions and 2 deletions

View File

@ -519,7 +519,7 @@ bool perl_matcher<BidiIterator, Allocator, traits, Allocator2>::match_dot_repeat
return match_dot_repeat_slow();
const re_repeat* rep = static_cast<const re_repeat*>(pstate);
unsigned count = std::min(static_cast<unsigned>(re_detail::distance(position, last)), (rep->greedy ? rep->max : rep->min));
unsigned count = std::min(static_cast<unsigned>(re_detail::distance(position, last)), static_cast<unsigned>(rep->greedy ? rep->max : rep->min));
if(rep->min > count)
return false; // not enough text left to match
std::advance(position, count);