Fix a signedness cast warning
Rafael Garcia-Suarez [Wed, 15 Nov 2006 13:03:34 +0000 (13:03 +0000)]
p4raw-id: //depot/perl@29281

sv.c

diff --git a/sv.c b/sv.c
index 6696e9a..c509b03 100644 (file)
--- a/sv.c
+++ b/sv.c
@@ -2663,7 +2663,7 @@ Perl_sv_2pv_flags(pTHX_ register SV *sv, STRLEN *lp, I32 flags)
                 {
                     char *str = NULL;
                     I32 haseval = 0;
-                    I32 flags = 0;
+                    U32 flags = 0;
                     (str) = CALLREG_AS_STR(mg,lp,&flags,&haseval);
                     if (flags & 1)
                        SvUTF8_on(sv);