[Pcre-svn] [661] code/trunk/src/pcre2_study.c: Small code ti…

Top Page
Delete this message
Author: Subversion repository
Date:  
To: pcre-svn
Subject: [Pcre-svn] [661] code/trunk/src/pcre2_study.c: Small code tidy to make it more understandable.
Revision: 661
          http://www.exim.org/viewvc/pcre2?view=rev&revision=661
Author:   ph10
Date:     2017-02-10 16:42:14 +0000 (Fri, 10 Feb 2017)
Log Message:
-----------
Small code tidy to make it more understandable.


Modified Paths:
--------------
    code/trunk/src/pcre2_study.c


Modified: code/trunk/src/pcre2_study.c
===================================================================
--- code/trunk/src/pcre2_study.c    2017-02-10 16:33:15 UTC (rev 660)
+++ code/trunk/src/pcre2_study.c    2017-02-10 16:42:14 UTC (rev 661)
@@ -195,8 +195,8 @@
     case OP_SCBRA:
     case OP_CBRAPOS:
     case OP_SCBRAPOS:
-    recno = dupcapused? prev_cap_recno - 1 : (int)GET2(cc, 1+LINK_SIZE);
-    if (recno != prev_cap_recno)
+    recno = (int)GET2(cc, 1+LINK_SIZE);
+    if (dupcapused || recno != prev_cap_recno)
       {
       prev_cap_recno = recno;
       prev_cap_d = find_minlength(re, cc, startcode, utf, recurses, countptr,