diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2009-02-01 22:52:13 +0100 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2009-02-01 22:52:33 +0100 |
commit | 22901f3092e7c5e351ab76b58f47dc595d022343 (patch) | |
tree | 4be3c3f6beca66dedd4d50f65f5a01f715ecbfe6 /utfebcdic.h | |
parent | cbbb00c6b54a037bd5a2a10e54e58dc59af54a94 (diff) | |
download | perl-22901f3092e7c5e351ab76b58f47dc595d022343.tar.gz |
Put parentheses around macro arguments
Diffstat (limited to 'utfebcdic.h')
-rw-r--r-- | utfebcdic.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utfebcdic.h b/utfebcdic.h index 67b993f8a8..e61b4a7e9c 100644 --- a/utfebcdic.h +++ b/utfebcdic.h @@ -472,8 +472,8 @@ END_EXTERN_C #define UTF8_IS_CONTINUED(c) (NATIVE_TO_UTF(c) >= 0xA0) #define UTF8_IS_DOWNGRADEABLE_START(c) (NATIVE_TO_UTF(c) >= 0xA0 && (NATIVE_TO_UTF(c) & 0xF8) == 0xC0) -#define UTF_START_MARK(len) ((len > 7) ? 0xFF : ((U8)(0xFE << (7-len)))) -#define UTF_START_MASK(len) ((len >= 6) ? 0x01 : (0x1F >> (len-2))) +#define UTF_START_MARK(len) (((len) > 7) ? 0xFF : ((U8)(0xFE << (7-(len))))) +#define UTF_START_MASK(len) (((len) >= 6) ? 0x01 : (0x1F >> ((len)-2))) #define UTF_CONTINUATION_MARK 0xA0 #define UTF_CONTINUATION_MASK ((U8)0x1f) #define UTF_ACCUMULATION_SHIFT 5 |