Restore the const to vtbl in Perl_mg_localize() removed in change
authorNicholas Clark <nick@ccl4.org>
Sun, 21 Jan 2007 23:11:30 +0000 (23:11 +0000)
committerNicholas Clark <nick@ccl4.org>
Sun, 21 Jan 2007 23:11:30 +0000 (23:11 +0000)
26924.

p4raw-id: //depot/perl@29910

mg.c

diff --git a/mg.c b/mg.c
index 86f0e12..a3e0f26 100644 (file)
--- a/mg.c
+++ b/mg.c
@@ -413,7 +413,7 @@ Perl_mg_localize(pTHX_ SV *sv, SV *nsv)
     dVAR;
     MAGIC *mg;
     for (mg = SvMAGIC(sv); mg; mg = mg->mg_moremagic) {
-       MGVTBL* const vtbl = mg->mg_virtual;
+       const MGVTBL* const vtbl = mg->mg_virtual;
        switch (mg->mg_type) {
        /* value magic types: don't copy */
        case PERL_MAGIC_bm: