summaryrefslogtreecommitdiff
path: root/perly.c
diff options
context:
space:
mode:
authorSteve Peters <steve@fisharerojo.org>2005-05-20 16:42:10 -0500
committerAbhijit Menon-Sen <ams@wiw.org>2005-05-21 02:58:49 +0000
commitb15aece354b2aec9d338e59acb2abc2deeebc3c0 (patch)
treecd9381dd13364c19fdc12c6a4d15a29d82e5314e /perly.c
parent8d2f45362e368d7dd455b476c924dcbcc02d845b (diff)
downloadperl-b15aece354b2aec9d338e59acb2abc2deeebc3c0.tar.gz
SvPVX_const - patch #2
Message-Id: <20050521024210.GA29036@mccoy.peters.homeunix.org> p4raw-id: //depot/perl@24523
Diffstat (limited to 'perly.c')
-rw-r--r--perly.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/perly.c b/perly.c
index 6b9e376625..91f3bb9636 100644
--- a/perly.c
+++ b/perly.c
@@ -322,7 +322,7 @@ Perl_yyparse (pTHX)
#ifdef DEBUGGING
yyns_sv = NEWSV(73, YYINITDEPTH * sizeof(char *));
SAVEFREESV(yyns_sv);
- yyns = (const char **) SvPVX(yyns_sv);
+ yyns = SvPVX_const(yyns_sv);
yynsp = yyns;
#endif
@@ -366,7 +366,7 @@ Perl_yyparse (pTHX)
yyvs = (YYSTYPE *) SvPVX(yyvs_sv);
#ifdef DEBUGGING
SvGROW(yyns_sv, yystacksize * sizeof(char *));
- yyns = (const char **) SvPVX(yyns_sv);
+ yyns = SvPVX_const(yyns_sv);
if (! yyns)
goto yyoverflowlab;
yynsp = yyns + yysize - 1;