diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2009-08-26 14:32:22 +0200 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2009-08-26 14:32:22 +0200 |
commit | d503a9ba1b647d7301de5326f3dab5a9176a98a4 (patch) | |
tree | 0c787fd4aa98f62b8814010e18a7886497a10547 /op.c | |
parent | 61f1d76ce428c9a39370be9d77a2a7f7dbc91779 (diff) | |
download | perl-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |