summaryrefslogtreecommitdiff
path: root/ext/Data
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1999-10-23 16:04:02 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1999-10-23 16:04:02 +0000
commit7b0972df8f5014603934d3178907bf5277318161 (patch)
tree6748f8128f34cfdbe81265ca503330f3c8951f19 /ext/Data
parent717c4fccde48e6e876d5a07742c5d23716c698ef (diff)
downloadperl-7b0972df8f5014603934d3178907bf5277318161.tar.gz
Fix the printfing nits pointed out by using gcc -Wall and
Configure -Duse64bits -Dccflags=-DDEBUGGING in Solaris, plus few other warnings in Dumper.xs. p4raw-id: //depot/cfgperl@4426
Diffstat (limited to 'ext/Data')
-rw-r--r--ext/Data/Dumper/Dumper.xs9
1 files changed, 5 insertions, 4 deletions
diff --git a/ext/Data/Dumper/Dumper.xs b/ext/Data/Dumper/Dumper.xs
index 054e0a970d..886c317ea0 100644
--- a/ext/Data/Dumper/Dumper.xs
+++ b/ext/Data/Dumper/Dumper.xs
@@ -45,11 +45,12 @@ TOP:
}
if (isIDFIRST(*s)) {
while (*++s)
- if (!isALNUM(*s))
+ if (!isALNUM(*s)) {
if (*s == ':')
goto TOP;
else
return 1;
+ }
}
else
return 1;
@@ -384,7 +385,7 @@ DD_dump(pTHX_ SV *val, char *name, STRLEN namelen, SV *retval, HV *seenhv,
ilen = inamelen;
sv_setiv(ixsv, ix);
- (void) sprintf(iname+ilen, "%ld", ix);
+ (void) sprintf(iname+ilen, "%"IVdf, (IV)ix);
ilen = strlen(iname);
iname[ilen++] = ']'; iname[ilen] = '\0';
if (indent >= 3) {
@@ -705,7 +706,7 @@ Data_Dumper_Dumpxs(href, ...)
SV **svp;
SV *val, *name, *pad, *xpad, *apad, *sep, *tmp, *varname;
SV *freezer, *toaster, *bless;
- I32 purity, deepcopy, quotekeys, maxdepth;
+ I32 purity, deepcopy, quotekeys, maxdepth = 0;
char tmpbuf[1024];
I32 gimme = GIMME;
@@ -838,7 +839,7 @@ Data_Dumper_Dumpxs(href, ...)
STRLEN nchars = 0;
sv_setpvn(name, "$", 1);
sv_catsv(name, varname);
- (void) sprintf(tmpbuf, "%ld", i+1);
+ (void) sprintf(tmpbuf, "%"IVdf, (IV)i+1);
nchars = strlen(tmpbuf);
sv_catpvn(name, tmpbuf, nchars);
}