diff options
author | Karl Williamson <public@khwilliamson.com> | 2012-12-23 19:01:34 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2012-12-23 19:39:05 -0700 |
commit | 559c7f10ed871fab06296b9297b9273240599eee (patch) | |
tree | 7026a48fd52268850406133c54859c59eb75f354 /utf8.h | |
parent | 398d098a2fd6b1e1f8063b497c5817fd34235474 (diff) | |
download | perl-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |