summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorRobin Barker <RMBarker@cpan.org>2003-01-28 13:27:17 +0000
committerhv <hv@crypt.org>2003-02-12 02:20:39 +0000
commite3feee4e511b83331e79ac04619b8ea753bb64aa (patch)
tree1bba0ebfeb41bc6f32680b354edcb74524d8c473 /util.c
parentf3583277f058a41c88989ac547f12b7065567d88 (diff)
downloadperl-e3feee4e511b83331e79ac04619b8ea753bb64aa.tar.gz
to silence compiler warning
Message-ID: <533D273D4014D411AB1D00062938C4D9040462CC@hotel.npl.co.uk> p4raw-id: //depot/perl@18697
Diffstat (limited to 'util.c')
-rw-r--r--util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util.c b/util.c
index 7664f60334..6bdcf38abf 100644
--- a/util.c
+++ b/util.c
@@ -3949,14 +3949,14 @@ Perl_vstringify(pTHX_ SV *vs)
return sv;
}
digit = SvIVX(*av_fetch((AV *)vs, 0, 0));
- Perl_sv_setpvf(aTHX_ sv,"%d",digit);
+ Perl_sv_setpvf(aTHX_ sv,"%"IVdf,(IV)digit);
for ( i = 1 ; i <= len ; i++ )
{
digit = SvIVX(*av_fetch((AV *)vs, i, 0));
if ( digit < 0 )
- Perl_sv_catpvf(aTHX_ sv,"_%d",-digit);
+ Perl_sv_catpvf(aTHX_ sv,"_%"IVdf,(IV)-digit);
else
- Perl_sv_catpvf(aTHX_ sv,".%d",digit);
+ Perl_sv_catpvf(aTHX_ sv,".%"IVdf,(IV)digit);
}
if ( len == 0 )
Perl_sv_catpv(aTHX_ sv,".0");