mirror of
https://github.com/boostorg/regex.git
synced 2025-07-30 04:27:22 +02:00
64-bit portability fix
[SVN r23063]
This commit is contained in:
@ -593,7 +593,7 @@ hl_grep_test_proc(const RegEx& e)
|
|||||||
// check $`:
|
// check $`:
|
||||||
start = e.Position(-1);
|
start = e.Position(-1);
|
||||||
end = start + e.Length(-1);
|
end = start + e.Length(-1);
|
||||||
if(start == -1)
|
if(start == boost::RegEx::npos)
|
||||||
{
|
{
|
||||||
if(hl_match_id &&
|
if(hl_match_id &&
|
||||||
( matches[hl_match_id] != matches[hl_match_id - 1] )
|
( matches[hl_match_id] != matches[hl_match_id - 1] )
|
||||||
@ -628,7 +628,7 @@ hl_grep_test_proc(const RegEx& e)
|
|||||||
// check $':
|
// check $':
|
||||||
start = e.Position(-2);
|
start = e.Position(-2);
|
||||||
end = start + e.Length(-2);
|
end = start + e.Length(-2);
|
||||||
if(start == -1)
|
if(start == boost::RegEx::npos)
|
||||||
{
|
{
|
||||||
if(matches[hl_match_id + 1] != (int)search_text.size())
|
if(matches[hl_match_id + 1] != (int)search_text.size())
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user