diff options
author | Nicholas Clark <nick@ccl4.org> | 2011-05-13 16:35:59 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2011-06-11 10:12:17 +0200 |
commit | 0a1f728a485818674e743b9fb9a3c149f9e53b6e (patch) | |
tree | 2f37fa3b4fe9343ed341a711686bed8d8eeac0b4 /mg_vtable.h | |
parent | 8b09643d068d86543c3782211d4a527ee93fee77 (diff) | |
download | perl-0a1f728a485818674e743b9fb9a3c149f9e53b6e.tar.gz |
Move the cast for a magic vtable with const get into mg_vtable.h
Putting the cast inside the initialiser (the only initialiser using it)
eliminates use of the macro MGVTBL_SET_CONST_MAGIC_GET(), which can be deleted
as nothing outside the core is relying on it.
Diffstat (limited to 'mg_vtable.h')
-rw-r--r-- | mg_vtable.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mg_vtable.h b/mg_vtable.h index ebe448a454..43530883a0 100644 --- a/mg_vtable.h +++ b/mg_vtable.h @@ -134,9 +134,9 @@ MGVTBL_SET( 0 ); -MGVTBL_SET_CONST_MAGIC_GET( +MGVTBL_SET( PL_vtbl_arylen, - Perl_magic_getarylen, + (int (*)(pTHX_ SV *, MAGIC *))Perl_magic_getarylen, Perl_magic_setarylen, 0, 0, |