summaryrefslogtreecommitdiff
path: root/src/pcre2_jit_match.c
diff options
context:
space:
mode:
authorzherczeg <zherczeg@6239d852-aaf2-0410-a92c-79f79f948069>2014-10-04 17:05:21 +0000
committerzherczeg <zherczeg@6239d852-aaf2-0410-a92c-79f79f948069>2014-10-04 17:05:21 +0000
commitb908453d38ef770c8bc02bda93ab12e1bacf8a4e (patch)
treeca8423d40470829dfb600746b22d0bf6fb1226b5 /src/pcre2_jit_match.c
parentf5b0b52c90f4c5826bbc6a08b308b71020efd498 (diff)
downloadpcre2-b908453d38ef770c8bc02bda93ab12e1bacf8a4e.tar.gz
Minor fixes. RunTest 1 now works with JIT.
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@93 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'src/pcre2_jit_match.c')
-rw-r--r--src/pcre2_jit_match.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/pcre2_jit_match.c b/src/pcre2_jit_match.c
index d110c0d..6b960f7 100644
--- a/src/pcre2_jit_match.c
+++ b/src/pcre2_jit_match.c
@@ -143,7 +143,6 @@ if (mcontext != NULL)
arguments.callout = mcontext->callout;
arguments.callout_data = mcontext->callout_data;
}
-arguments.real_oveccount = oveccount;
/* pcre_exec() rounds offset_count to a multiple of 3, and then uses only 2/3 of
the output vector for storing captured strings, with the remainder used as
@@ -154,7 +153,7 @@ gets the same result with and without JIT. */
max_oveccount = functions->top_bracket;
if (oveccount > max_oveccount)
oveccount = max_oveccount;
-arguments.oveccount = oveccount;
+arguments.oveccount = oveccount << 1;
convert_executable_func.executable_func = functions->executable_funcs[index];
if (jit_stack != NULL)
@@ -165,7 +164,7 @@ if (jit_stack != NULL)
else
rc = jit_machine_stack_exec(&arguments, convert_executable_func.call_executable_func);
-if (rc * 2 > oveccount)
+if (rc > (int)oveccount)
rc = 0;
match_data->code = re;
match_data->subject = subject;