summaryrefslogtreecommitdiff
path: root/utf8.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2019-10-05 16:43:10 -0600
committerKarl Williamson <khw@cpan.org>2019-11-11 21:05:13 -0700
commitb5ad20ca76c352a51d19a0e934fe4989b4a167d3 (patch)
tree3e240d5bf0044b2ac812a9b2ca6d0dba3e9f70d3 /utf8.h
parent6ea51042b552b31d8fac8e32434ca9927ccfc109 (diff)
downloadperl-b5ad20ca76c352a51d19a0e934fe4989b4a167d3.tar.gz
utf8.h: Use a cast to U8 to avoid an AND
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 6a11ce0c9b..f9b3222cff 100644
--- a/utf8.h
+++ b/utf8.h
@@ -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