summaryrefslogtreecommitdiff
path: root/utf8.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2011-11-21 16:58:30 -0700
committerKarl Williamson <public@khwilliamson.com>2011-11-21 17:20:24 -0700
commit880d3d38e51b563e24201397c8ab4f960508d33e (patch)
tree771fce1888f58562a22fd95a123d8cfc72323375 /utf8.h
parent2f454f119a96b1967d2f23688383ce7c84a497d6 (diff)
downloadperl-880d3d38e51b563e24201397c8ab4f960508d33e.tar.gz
utf8.h: Add missing parens
These weren't caught because it only is compiled on an EBCDIC platform, and I had to fake it to force the compilation
Diffstat (limited to 'utf8.h')
-rw-r--r--utf8.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/utf8.h b/utf8.h
index c77079d47c..6aa441239f 100644
--- a/utf8.h
+++ b/utf8.h
@@ -310,7 +310,7 @@ Perl's extended UTF-8 means we can have start bytes up to FF.
*/
#ifdef EBCDIC /* Both versions assume well-formed UTF8 */
# define UTF8_IS_SURROGATE(s) (*(s) == UTF_TO_NATIVE(0xF1) \
- && (*((s) +1) == UTF_TO_NATIVE(0xB6)) || *((s) + 1) == UTF_TO_NATIVE(0xB7))
+ && ((*((s) +1) == UTF_TO_NATIVE(0xB6)) || *((s) + 1) == UTF_TO_NATIVE(0xB7)))
#else
# define UTF8_IS_SURROGATE(s) (*(s) == 0xED && *((s) + 1) >= 0xA0)
#endif