This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Don't set things to zero twice. Once is enough. (see also change 15255)
[perl5.git]
/
utf8.c
diff --git
a/utf8.c
b/utf8.c
index
61e4432
..
4f41a97
100644
(file)
--- a/
utf8.c
+++ b/
utf8.c
@@
-1863,7
+1863,7
@@
Perl_pv_uni_display(pTHX_ SV *dsv, const U8 *spv, STRLEN len, STRLEN pvlim, UV f
}
u = utf8_to_uvchr((U8*)s, 0);
if (u < 256) {
- unsigned char c = u & 0xFF;
+ unsigned char c =
(unsigned char)
u & 0xFF;
if (!ok && (flags & UNI_DISPLAY_BACKSLASH)) {
switch (c) {
case '\n':