diff options
author | David Mitchell <davem@iabyn.com> | 2016-03-28 09:59:10 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2016-03-28 15:30:38 +0100 |
commit | daeb874b6b0d9720a5b3cffd11054bd7d7678888 (patch) | |
tree | 5973224889dfe12a3ec352474293ee52d4dfc921 /regcomp.c | |
parent | 9d9905599cad5eeb33b2a64c023b97005694fbcd (diff) | |
download | perl-daeb874b6b0d9720a5b3cffd11054bd7d7678888.tar.gz |
re_exec_indentf,re_indentf: silence warnings
Pass the right types to printf.
For re_exec_indentf(), really the type of the depth arg should be changed
so that it and the depth var are consistent throughout regexec.c, but
that's probably something for post-5.24.
Diffstat (limited to 'regcomp.c')
-rw-r--r-- | regcomp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -933,7 +933,7 @@ Perl_re_indentf(pTHX_ const char *fmt, U32 depth, ...) PerlIO *f= Perl_debug_log; PERL_ARGS_ASSERT_RE_INDENTF; va_start(ap, depth); - PerlIO_printf(f, "%*s", ( depth % 20 ) * 2, ""); + PerlIO_printf(f, "%*s", ( (int)depth % 20 ) * 2, ""); result = PerlIO_vprintf(f, fmt, ap); va_end(ap); return result; |