summaryrefslogtreecommitdiff
path: root/pcre16_valid_utf16.c
diff options
context:
space:
mode:
authorchpe <chpe@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-10-18 18:34:57 +0000
committerchpe <chpe@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-10-18 18:34:57 +0000
commit8b31f79fdbf698cf8743b6bcac264efdacb19ada (patch)
tree665e3e74be9fc1fb93b02e74ba3187aa001959c9 /pcre16_valid_utf16.c
parent292570d0eda4a5230244de29b51f0cb7c978781c (diff)
downloadpcre-8b31f79fdbf698cf8743b6bcac264efdacb19ada.tar.gz
Add extra parentheses around && inside ||
Fixes warnings from -Wparentheses. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1125 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre16_valid_utf16.c')
-rw-r--r--pcre16_valid_utf16.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcre16_valid_utf16.c b/pcre16_valid_utf16.c
index 6e7855d..c06023a 100644
--- a/pcre16_valid_utf16.c
+++ b/pcre16_valid_utf16.c
@@ -102,7 +102,7 @@ for (p = string; length-- > 0; p++)
/* Normal UTF-16 code point. Neither high nor low surrogate. */
/* Check for non-characters */
- if ((c & 0xfffeu) == 0xfffeu || c >= 0xfdd0u && c <= 0xfdefu)
+ if ((c & 0xfffeu) == 0xfffeu || (c >= 0xfdd0u && c <= 0xfdefu))
{
*erroroffset = p - string;
return PCRE_UTF16_ERR4;