summaryrefslogtreecommitdiff
path: root/dump.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2021-07-24 07:20:18 -0600
committerKarl Williamson <khw@cpan.org>2021-07-30 06:11:46 -0600
commit2a173f5acb2530a130e407273836e051b31337d8 (patch)
tree8c06f62f56c0ac6d0cdc32d3c3fadc1c4cb4720f /dump.c
parentfb1a3d54eecea658ab547fc242fd442e4155729a (diff)
downloadperl-2a173f5acb2530a130e407273836e051b31337d8.tar.gz
dump.c: Save a '&' instr by casting to U8
Diffstat (limited to 'dump.c')
-rw-r--r--dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dump.c b/dump.c
index a72accddb3..a939c3ff56 100644
--- a/dump.c
+++ b/dump.c
@@ -181,7 +181,7 @@ Perl_pv_escape( pTHX_ SV *dsv, char const * const str,
for ( ; (pv < end && (!max || (wrote < max))) ; pv += readsize ) {
const UV u= (isuni) ? utf8_to_uvchr_buf((U8*)pv, (U8*) end, &readsize) : (U8)*pv;
- const U8 c = (U8)u & 0xFF;
+ const U8 c = (U8)u;
if ( ( u > 255 )
|| (flags & PERL_PV_ESCAPE_ALL)