Varargs don't always work too well if one puts an unsigned
authorYitzchak Scott-Thoennes <sthoenna@efn.org>
Mon, 6 Nov 2000 15:19:05 +0000 (07:19 -0800)
committerJarkko Hietaniemi <jhi@iki.fi>
Tue, 7 Nov 2000 00:04:17 +0000 (00:04 +0000)
char on the stack and pop an unsigned quad off the stack.

Subject: Re: [ID 20001103.002] Not OK: perl v5.7.0 +DEVEL7523 on os2-64int-ld-2.30 (UNINSTALLED)
Message-ID: <pxzB6gzkgKXY092yn@efn.org>

p4raw-id: //depot/perl@7584

utf8.c

diff --git a/utf8.c b/utf8.c
index 5237ac4..8ce0d21 100644 (file)
--- a/utf8.c
+++ b/utf8.c
@@ -215,7 +215,7 @@ Perl_utf8_to_uv(pTHX_ U8* s, STRLEN curlen, STRLEN* retlen, U32 flags)
        if (dowarn)
            Perl_warner(aTHX_ WARN_UTF8,
                        "Malformed UTF-8 character (unexpected non-continuation byte 0x%02"UVxf" after byte 0x%02"UVxf")",
-                       s[1], uv);
+                       (UV)s[1], uv);
        goto malformed;
     }