[Pcre-svn] [1639] code/trunk: Fix typo in pcre_study().

Top Page
Delete this message
Author: Subversion repository
Date:  
To: pcre-svn
Subject: [Pcre-svn] [1639] code/trunk: Fix typo in pcre_study().
Revision: 1639
          http://vcs.pcre.org/viewvc?view=rev&revision=1639
Author:   ph10
Date:     2016-02-28 14:56:33 +0000 (Sun, 28 Feb 2016)
Log Message:
-----------
Fix typo in pcre_study().


Modified Paths:
--------------
    code/trunk/ChangeLog
    code/trunk/pcre_study.c


Modified: code/trunk/ChangeLog
===================================================================
--- code/trunk/ChangeLog    2016-02-27 18:44:41 UTC (rev 1638)
+++ code/trunk/ChangeLog    2016-02-28 14:56:33 UTC (rev 1639)
@@ -69,7 +69,10 @@
     ("assertion expected") when (?(?C) was not followed by an opening 
     parenthesis.


+17. Fixed typo ("&&" for "&") in pcre_study(). Fortunately, this could not 
+    actually affect anything, by sheer luck.


+
Version 8.38 23-November-2015
-----------------------------


Modified: code/trunk/pcre_study.c
===================================================================
--- code/trunk/pcre_study.c    2016-02-27 18:44:41 UTC (rev 1638)
+++ code/trunk/pcre_study.c    2016-02-28 14:56:33 UTC (rev 1639)
@@ -1371,7 +1371,7 @@
             for (c = 0; c < 16; c++) start_bits[c] |= map[c];
             for (c = 128; c < 256; c++)
               {
-              if ((map[c/8] && (1 << (c&7))) != 0)
+              if ((map[c/8] & (1 << (c&7))) != 0)
                 {
                 int d = (c >> 6) | 0xc0;            /* Set bit for this starter */
                 start_bits[d/8] |= (1 << (d&7));    /* and then skip on to the */