summaryrefslogtreecommitdiff
path: root/dist/Data-Dumper
diff options
context:
space:
mode:
authorZefram <zefram@fysh.org>2010-12-11 18:18:12 +0000
committerZefram <zefram@fysh.org>2010-12-11 18:23:16 +0000
commitc33e8be1506a75e393304af89d64e3f46e0ca7cb (patch)
tree064f08620e62d11eca50f73b7439564b702f47ad /dist/Data-Dumper
parentd6f31ecf904f01f8a2aab2bca55e33b1b51e0b4d (diff)
downloadperl-c33e8be1506a75e393304af89d64e3f46e0ca7cb.tar.gz
fix various compiler warnings from XS code
Trivial changes to fix warnings of types * unclear precedence * assignment as conditional * signed/unsigned mixing * unused parameter/variable * value computed not used * wrong argument type for a printf format * variable may be used uninitialised (due to unhandled switch case)
Diffstat (limited to 'dist/Data-Dumper')
-rw-r--r--dist/Data-Dumper/Dumper.xs2
1 files changed, 1 insertions, 1 deletions
diff --git a/dist/Data-Dumper/Dumper.xs b/dist/Data-Dumper/Dumper.xs
index ce38ec019d..56b3378e61 100644
--- a/dist/Data-Dumper/Dumper.xs
+++ b/dist/Data-Dumper/Dumper.xs
@@ -706,7 +706,7 @@ DD_dump(pTHX_ SV *val, const char *name, STRLEN namelen, SV *retval, HV *seenhv,
keysv = svp ? *svp : sv_mortalcopy(&PL_sv_undef);
key = SvPV(keysv, keylen);
svp = hv_fetch((HV*)ival, key,
- SvUTF8(keysv) ? -(I32)keylen : keylen, 0);
+ SvUTF8(keysv) ? -(I32)keylen : (I32)keylen, 0);
hval = svp ? *svp : sv_mortalcopy(&PL_sv_undef);
}
else {