summaryrefslogtreecommitdiff
path: root/utf8.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-12-23 19:01:34 -0700
committerKarl Williamson <public@khwilliamson.com>2012-12-23 19:39:05 -0700
commit559c7f10ed871fab06296b9297b9273240599eee (patch)
tree7026a48fd52268850406133c54859c59eb75f354 /utf8.h
parent398d098a2fd6b1e1f8063b497c5817fd34235474 (diff)
downloadperl-559c7f10ed871fab06296b9297b9273240599eee.tar.gz
utf8.h: Parenthesize macro parameter
This apparently hasn't caused us problems, but all uses of a macro paramenter should be parenthesized to prevent surprises.
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 1df972bba6..5aac9043f6 100644
--- a/utf8.h
+++ b/utf8.h
@@ -174,7 +174,7 @@ Perl's extended UTF-8 means we can have start bytes up to FF.
/* Use UTF8_IS_NEXT_CHAR_DOWNGRADEABLE() instead if the input isn't known to
* be well-formed. Masking with 0xfe allows low bit to be 0 or 1; thus this
* matches 0xc[23]. */
-#define UTF8_IS_DOWNGRADEABLE_START(c) (((U8)c & 0xfe) == 0xc2)
+#define UTF8_IS_DOWNGRADEABLE_START(c) (((U8)(c) & 0xfe) == 0xc2)
#define UTF8_IS_ABOVE_LATIN1(c) ((U8)(c) >= 0xc4)