summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2016-03-28 09:59:10 +0100
committerDavid Mitchell <davem@iabyn.com>2016-03-28 15:30:38 +0100
commitdaeb874b6b0d9720a5b3cffd11054bd7d7678888 (patch)
tree5973224889dfe12a3ec352474293ee52d4dfc921 /regcomp.c
parent9d9905599cad5eeb33b2a64c023b97005694fbcd (diff)
downloadperl-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regcomp.c b/regcomp.c
index 2f46a2482c..63f6e9e7e4 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -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;