From cf6f69258c698bb1ccf3f89c2863c740d4cddbb3 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Wed, 9 Jun 2004 11:23:52 +0000 Subject: [PATCH] 64-bit portability fix [SVN r23063] --- test/regress/tests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/regress/tests.cpp b/test/regress/tests.cpp index a6c2a999..ea8e35e8 100644 --- a/test/regress/tests.cpp +++ b/test/regress/tests.cpp @@ -593,7 +593,7 @@ hl_grep_test_proc(const RegEx& e) // check $`: start = e.Position(-1); end = start + e.Length(-1); - if(start == -1) + if(start == boost::RegEx::npos) { if(hl_match_id && ( matches[hl_match_id] != matches[hl_match_id - 1] ) @@ -628,7 +628,7 @@ hl_grep_test_proc(const RegEx& e) // check $': start = e.Position(-2); end = start + e.Length(-2); - if(start == -1) + if(start == boost::RegEx::npos) { if(matches[hl_match_id + 1] != (int)search_text.size()) {