diff options
author | Karl Williamson <khw@cpan.org> | 2019-10-05 16:43:10 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2019-11-11 21:05:13 -0700 |
commit | b5ad20ca76c352a51d19a0e934fe4989b4a167d3 (patch) | |
tree | 3e240d5bf0044b2ac812a9b2ca6d0dba3e9f70d3 /utf8.h | |
parent | 6ea51042b552b31d8fac8e32434ca9927ccfc109 (diff) | |
download | perl-b5ad20ca76c352a51d19a0e934fe4989b4a167d3.tar.gz |
utf8.h: Use a cast to U8 to avoid an AND
Diffstat (limited to 'utf8.h')
-rw-r--r-- | utf8.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -455,7 +455,7 @@ uppercase/lowercase/titlecase/fold into. * UTF-8 encoded character that mark it as a start byte and give the number of * bytes that comprise the character. 'len' is the number of bytes in the * multi-byte sequence. */ -#define UTF_START_MARK(len) (((len) > 7) ? 0xFF : (0xFF & (0xFE << (7-(len))))) +#define UTF_START_MARK(len) (((len) > 7) ? 0xFF : ((U8) (0xFE << (7-(len))))) /* Masks out the initial one bits in a start byte, leaving the real data ones. * Doesn't work on an invariant byte. 'len' is the number of bytes in the |