summaryrefslogtreecommitdiff
path: root/regcomp.c
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 /regcomp.c
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 'regcomp.c')
-rw-r--r--regcomp.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/regcomp.c b/regcomp.c
index 2a27b07743..2b0e0c5bb9 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -3239,21 +3239,23 @@ Perl_regdump(pTHX_ regexp *r)
/* Header fields of interest. */
if (r->anchored_substr)
- PerlIO_printf(Perl_debug_log, "anchored `%s%.*s%s'%s at %d ",
+ PerlIO_printf(Perl_debug_log,
+ "anchored `%s%.*s%s'%s at %"IVdf" ",
PL_colors[0],
- SvCUR(r->anchored_substr) - (SvTAIL(r->anchored_substr)!=0),
+ (int)(SvCUR(r->anchored_substr) - (SvTAIL(r->anchored_substr)!=0)),
SvPVX(r->anchored_substr),
PL_colors[1],
SvTAIL(r->anchored_substr) ? "$" : "",
- r->anchored_offset);
+ (IV)r->anchored_offset);
if (r->float_substr)
- PerlIO_printf(Perl_debug_log, "floating `%s%.*s%s'%s at %d..%u ",
+ PerlIO_printf(Perl_debug_log,
+ "floating `%s%.*s%s'%s at %"IVdf"..%"UVuf" ",
PL_colors[0],
- SvCUR(r->float_substr) - (SvTAIL(r->float_substr)!=0),
+ (int)(SvCUR(r->float_substr) - (SvTAIL(r->float_substr)!=0)),
SvPVX(r->float_substr),
PL_colors[1],
SvTAIL(r->float_substr) ? "$" : "",
- r->float_min_offset, r->float_max_offset);
+ (IV)r->float_min_offset, (UV)r->float_max_offset);
if (r->check_substr)
PerlIO_printf(Perl_debug_log,
r->check_substr == r->float_substr