diff options
author | zherczeg <zherczeg@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2012-01-09 20:12:58 +0000 |
---|---|---|
committer | zherczeg <zherczeg@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2012-01-09 20:12:58 +0000 |
commit | f2488124fa9818754bd6c2178b64e3a7874f5de1 (patch) | |
tree | 43b2e15637f9abe5e944744418a2b42127f846c8 /pcre_jit_compile.c | |
parent | 7d9f10d751dfb23d4343c095e1c10ec8a08cf302 (diff) | |
download | pcre-f2488124fa9818754bd6c2178b64e3a7874f5de1.tar.gz |
rename PCRE_SCHAR16 to PCRE_UCHAR16 and JIT compiler update
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@860 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_jit_compile.c')
-rw-r--r-- | pcre_jit_compile.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pcre_jit_compile.c b/pcre_jit_compile.c index ec7dece..599619a 100644 --- a/pcre_jit_compile.c +++ b/pcre_jit_compile.c @@ -6772,7 +6772,8 @@ workspace. We don't need the workspace here. For compatibility, we limit the number of captured strings in the same way as pcre_exec(), so that the user gets the same result with and without JIT. */ -offsetcount = ((offsetcount - (offsetcount % 3)) * 2)/3; +if (offsetcount != 2) + offsetcount = ((offsetcount - (offsetcount % 3)) * 2) / 3; maxoffsetcount = (re->top_bracket + 1) * 2; if (offsetcount > maxoffsetcount) offsetcount = maxoffsetcount; |