summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2021-07-24 07:27:13 -0600
committerKarl Williamson <khw@cpan.org>2021-07-30 06:11:46 -0600
commited17be2e04b135c5cd087a41888af295a863b9c5 (patch)
tree70ad824ec17325f1cc42f0f36121f8b1d30ef69d /sv.c
parent031c7092077d08cc9273f3be54f3ad3749ca8dd2 (diff)
downloadperl-ed17be2e04b135c5cd087a41888af295a863b9c5.tar.gz
sv.c: Save a '&' instr by casting to U8
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sv.c b/sv.c
index b199e1a947..b6ce11ee98 100644
--- a/sv.c
+++ b/sv.c
@@ -1811,7 +1811,7 @@ S_sv_display(pTHX_ SV *const sv, char *tmpbuf, STRLEN tmpbuf_size) {
const char *s = SvPVX_const(sv);
const char * const end = s + SvCUR(sv);
for ( ; s < end && d < limit; s++ ) {
- int ch = *s & 0xFF;
+ int ch = (U8) *s;
if (! isASCII(ch) && !isPRINT_LC(ch)) {
*d++ = 'M';
*d++ = '-';