summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-01-06 18:09:03 +0000
committerNicholas Clark <nick@ccl4.org>2006-01-06 18:09:03 +0000
commitef9ec799de4cf350af374bf46392522626d67771 (patch)
tree440235ffd1f8af84915ed63caa47b209d720ac0e /toke.c
parent0bcad44866d568fabf1c657f93cebd46d1fe1d95 (diff)
downloadperl-ef9ec799de4cf350af374bf46392522626d67771.tar.gz
Add cast in S_printbuf to compensate for the fact that the prototype
for pv_display in maint has not had const added. p4raw-id: //depot/maint-5.8/perl@26678
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index 67678262b4..d1abccaf18 100644
--- a/toke.c
+++ b/toke.c
@@ -355,7 +355,8 @@ STATIC void
S_printbuf(pTHX_ const char* fmt, const char* s)
{
SV* tmp = newSVpvn("", 0);
- PerlIO_printf(Perl_debug_log, fmt, pv_display(tmp, s, strlen(s), 0, 60));
+ PerlIO_printf(Perl_debug_log, fmt,
+ pv_display(tmp, (char *)s, strlen(s), 0, 60));
SvREFCNT_dec(tmp);
}