From: David Mitchell Date: Thu, 9 May 2013 10:55:47 +0000 (+0100) Subject: dump.c: avoid compiler warning under -Dmad X-Git-Tag: upstream/5.20.0~3606 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=299ef33b5b1be54a2b467cd78c9139096e32314a;p=platform%2Fupstream%2Fperl.git dump.c: avoid compiler warning under -Dmad this fix was already applied to the non-MAD branch; apply it to the similar MAD / xml-dump code. dump.c:2663:57: warning: comparison of constant 85 with expression of type 'svtype' is always false [-Wtautological-constant-out-of-range-compare] else if (sv == (const SV *)0x55555555 || SvTYPE(sv) == 'U') { --- diff --git a/dump.c b/dump.c index 13736d7..4e630ec 100644 --- a/dump.c +++ b/dump.c @@ -2660,7 +2660,7 @@ Perl_sv_xmlpeek(pTHX_ SV *sv) sv_catpv(t, "VOID=\"\""); goto finish; } - else if (sv == (const SV *)0x55555555 || SvTYPE(sv) == 'U') { + else if (sv == (const SV *)0x55555555 || ((char)SvTYPE(sv)) == 'U') { sv_catpv(t, "WILD=\"\""); goto finish; }