summaryrefslogtreecommitdiff
path: root/utf8.c
diff options
context:
space:
mode:
authorSteve Hay <SteveHay@planit.com>2005-03-29 15:18:30 +0000
committerSteve Hay <SteveHay@planit.com>2005-03-29 15:18:30 +0000
commitfe2774edcceb29d7f31eb2b8407d2ab3df896594 (patch)
tree5f9e337ef31aaa5474897b7a94d6eefe9c923d79 /utf8.c
parent1cb0ed9b77e4ba2e0bcbeb9a897574a0fe3f3e52 (diff)
downloadperl-fe2774edcceb29d7f31eb2b8407d2ab3df896594.tar.gz
Clean-up some warnings when compiling on Win32 with VC++
p4raw-id: //depot/perl@24096
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utf8.c b/utf8.c
index 61e4432222..4f41a97c82 100644
--- 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':