summaryrefslogtreecommitdiff
path: root/utf8.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2019-10-02 16:40:44 -0600
committerKarl Williamson <khw@cpan.org>2019-10-06 10:18:17 -0600
commit009097b13d65a5e37b729c12f1bb088e7c3c7316 (patch)
treedea3cbeca59e94acc18f9b3f8d852fe499129496 /utf8.h
parentcb15eeb248da9580d55c2a91ed5932642006573d (diff)
downloadperl-009097b13d65a5e37b729c12f1bb088e7c3c7316.tar.gz
utf8.h: Remove redundant cast
The called macro does the cast already
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 104f18c3f2..5ff24fdab4 100644
--- a/utf8.h
+++ b/utf8.h
@@ -475,7 +475,7 @@ encoded as UTF-8. C<cp> is a native (ASCII or EBCDIC) code point if less than
* code point in process of being generated */
#define UTF8_ACCUMULATE(old, new) (__ASSERT_(FITS_IN_8_BITS(new)) \
((old) << UTF_ACCUMULATION_SHIFT) \
- | ((NATIVE_UTF8_TO_I8((U8)new)) \
+ | ((NATIVE_UTF8_TO_I8(new)) \
& UTF_CONTINUATION_MASK))
/* This works in the face of malformed UTF-8. */