summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-02-19 17:57:39 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-02-19 17:57:39 +0000
commitce32ed4b46e58900e04971fb3189c48cd1fadbd1 (patch)
tree475dbdca6ff968128364e10c5aa45a2f8c1ef948 /sv.c
parente902a9797e486747cb6f7d090925b6ed8d7801d8 (diff)
downloadperl-ce32ed4b46e58900e04971fb3189c48cd1fadbd1.tar.gz
char vs U8 warnings
p4raw-id: //depot/perl@5155
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sv.c b/sv.c
index 52bf820a0b..7b52000982 100644
--- a/sv.c
+++ b/sv.c
@@ -2327,7 +2327,7 @@ Perl_sv_utf8_downgrade(pTHX_ register SV* sv, bool fail_ok)
while (c < SvEND(sv)) {
if (*c & 0x80) {
I32 len;
- UV uv = utf8_to_uv(c, &len);
+ UV uv = utf8_to_uv((U8*)c, &len);
if (uv >= 256) {
if (fail_ok)
return FALSE;
@@ -2351,7 +2351,7 @@ Perl_sv_utf8_downgrade(pTHX_ register SV* sv, bool fail_ok)
while (src < SvEND(sv)) {
if (*src & 0x80) {
I32 len;
- U8 u = (U8)utf8_to_uv(src, &len);
+ U8 u = (U8)utf8_to_uv((U8*)src, &len);
*dst++ = u;
src += len;
}