A small code tidy for one error return.

This commit is contained in:
Philip.Hazel 2017-12-16 16:07:29 +00:00
parent 3458a2e2cd
commit 9e38537b87
2 changed files with 5 additions and 1 deletions

View File

@ -78,6 +78,10 @@ infelicity rather than an outright bug, because it did not affect the result of
a match, just its speed. (In fact, in this case, the starting 'a' was a match, just its speed. (In fact, in this case, the starting 'a' was
subsequently picked up in the study.) subsequently picked up in the study.)
19. A minor tidy in pcre2_match(): making all PCRE2_ERROR_ returns use "return"
instead of "RRETURN" saves unwinding the backtracks in these cases (only one
didn't).
Version 10.30 14-August-2017 Version 10.30 14-August-2017
---------------------------- ----------------------------

View File

@ -5052,7 +5052,7 @@ fprintf(stderr, "++ op=%d\n", *Fecode);
P = (heapframe *)((char *)N - frame_size); P = (heapframe *)((char *)N - frame_size);
if (N->group_frame_type == (GF_RECURSE | number)) if (N->group_frame_type == (GF_RECURSE | number))
{ {
if (Feptr == P->eptr) RRETURN(PCRE2_ERROR_RECURSELOOP); if (Feptr == P->eptr) return PCRE2_ERROR_RECURSELOOP;
break; break;
} }
offset = P->last_group_offset; offset = P->last_group_offset;