Skip to content

Commit

Permalink
Fixed bitwise operations to use single ampersand instead of double
Browse files Browse the repository at this point in the history
  • Loading branch information
victorquinn committed Apr 23, 2012
1 parent cb6e663 commit 63a59a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pcre-4.3/pcre.c
Original file line number Diff line number Diff line change
Expand Up @@ -866,14 +866,14 @@ Returns: TRUE or FALSE
static BOOL
is_counted_repeat(const uschar *p, compile_data *cd)
{
if ((digitab[*p++] && ctype_digit) == 0) return FALSE;
if ((digitab[*p++] & ctype_digit) == 0) return FALSE;
while ((digitab[*p] & ctype_digit) != 0) p++;
if (*p == '}') return TRUE;

if (*p++ != ',') return FALSE;
if (*p == '}') return TRUE;

if ((digitab[*p++] && ctype_digit) == 0) return FALSE;
if ((digitab[*p++] & ctype_digit) == 0) return FALSE;
while ((digitab[*p] & ctype_digit) != 0) p++;

return (*p == '}');
Expand Down Expand Up @@ -2626,7 +2626,7 @@ for (;; ptr++)
if a digit follows ( then there will just be digits until ) because
the syntax was checked in the first pass. */

else if ((digitab[ptr[1]] && ctype_digit) != 0)
else if ((digitab[ptr[1]] & ctype_digit) != 0)
{
int condref; /* Don't amalgamate; some compilers */
condref = *(++ptr) - '0'; /* grumble at autoincrement in declaration */
Expand Down

0 comments on commit 63a59a2

Please sign in to comment.