From: Karl Williamson Date: Mon, 24 Dec 2012 02:01:34 +0000 (-0700) Subject: utf8.h: Parenthesize macro parameter X-Git-Tag: upstream/5.20.0~4369 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=559c7f10ed871fab06296b9297b9273240599eee;p=platform%2Fupstream%2Fperl.git 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. --- diff --git a/utf8.h b/utf8.h index 1df972b..5aac904 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)