summaryrefslogtreecommitdiff
path: root/ext/pcre/pcrelib/pcre_study.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2016-06-19 20:38:31 +0200
committerAnatol Belski <ab@php.net>2016-06-19 20:38:31 +0200
commit9d4fe9672a1c32d1349f267d24d079e3ebdc83e8 (patch)
tree8cbd925487df31704ada1adfdae28b2fd896efa4 /ext/pcre/pcrelib/pcre_study.c
parent9d92d0594db6303631d0c71847c60a9d4735fdd0 (diff)
downloadphp-git-9d4fe9672a1c32d1349f267d24d079e3ebdc83e8.tar.gz
upgraded to PCRE 8.39
Diffstat (limited to 'ext/pcre/pcrelib/pcre_study.c')
-rw-r--r--ext/pcre/pcrelib/pcre_study.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/pcre/pcrelib/pcre_study.c b/ext/pcre/pcrelib/pcre_study.c
index 38ab820853..d9d4960d84 100644
--- a/ext/pcre/pcrelib/pcre_study.c
+++ b/ext/pcre/pcrelib/pcre_study.c
@@ -42,7 +42,9 @@ POSSIBILITY OF SUCH DAMAGE.
supporting functions. */
+#ifdef HAVE_CONFIG_H
#include "config.h"
+#endif
#include "pcre_internal.h"
@@ -1369,7 +1371,7 @@ do
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 */