bugfix -- create Matches with longest_match_ovector not the temporary ovector
This commit is contained in:
parent
3a3dc4074b
commit
3cdaa2e338
@ -130,7 +130,7 @@ bool I_CLASSNAME::parse(istream & i)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Matches matches(tokens[longest_match_index].re,
|
Matches matches(tokens[longest_match_index].re,
|
||||||
&buff[0], ovector, ovector_size);
|
&buff[0], longest_match_ovector, ovector_size);
|
||||||
TokenRef token = buildToken(longest_match_index);
|
TokenRef token = buildToken(longest_match_index);
|
||||||
if (token.isNull())
|
if (token.isNull())
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user