summaryrefslogtreecommitdiff
path: root/dump.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2013-05-09 11:55:47 +0100
committerDavid Mitchell <davem@iabyn.com>2013-05-09 11:55:47 +0100
commit299ef33b5b1be54a2b467cd78c9139096e32314a (patch)
tree5b38930e53eec2fafe64ef328358d68371921bcc /dump.c
parent9c3c07f8ec0a449a2ff42754f2952773c0863fed (diff)
downloadperl-299ef33b5b1be54a2b467cd78c9139096e32314a.tar.gz
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') {
Diffstat (limited to 'dump.c')
-rw-r--r--dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dump.c b/dump.c
index 13736d711f..4e630ec399 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;
}