summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2009-08-26 14:32:22 +0200
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2009-08-26 14:32:22 +0200
commitd503a9ba1b647d7301de5326f3dab5a9176a98a4 (patch)
tree0c787fd4aa98f62b8814010e18a7886497a10547 /op.c
parent61f1d76ce428c9a39370be9d77a2a7f7dbc91779 (diff)
downloadperl-d503a9ba1b647d7301de5326f3dab5a9176a98a4.tar.gz
Use less constness in MAD code
This suppresses warnings, because sometimes the constness was taken away
Diffstat (limited to 'op.c')
-rw-r--r--op.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/op.c b/op.c
index e03997acab..e31c050a05 100644
--- a/op.c
+++ b/op.c
@@ -2770,7 +2770,7 @@ Perl_token_getmad(pTHX_ TOKEN* tk, OP* o, char slot)
/* faked up qw list? */
if (slot == '(' &&
tm->mad_type == MAD_SV &&
- SvPVX((const SV *)tm->mad_val)[0] == 'q')
+ SvPVX((SV *)tm->mad_val)[0] == 'q')
slot = 'x';
if (o) {
@@ -2927,7 +2927,7 @@ Perl_newMADsv(pTHX_ char key, SV* sv)
}
MADPROP *
-Perl_newMADPROP(pTHX_ char key, char type, const void* val, I32 vlen)
+Perl_newMADPROP(pTHX_ char key, char type, void* val, I32 vlen)
{
MADPROP *mp;
Newxz(mp, 1, MADPROP);