PATCH: Devel::Peek doesn't compile under C++
authorKarl Williamson <public@khwilliamson.com>
Wed, 22 Aug 2012 20:50:43 +0000 (14:50 -0600)
committerFather Chrysostomos <sprout@cpan.org>
Wed, 22 Aug 2012 22:57:42 +0000 (15:57 -0700)
Commit c9795579db61c900bacee2790bdceb7bad3dd45d introduced
an error in C++: it's missing a cast.

ext/Devel-Peek/Peek.xs

index 027a4e8..28e0e83 100644 (file)
@@ -54,7 +54,7 @@ DeadCode(pTHX)
                    PerlIO_printf(Perl_debug_log, "  busy\n");
                    continue;
                }
-               svp = PADLIST_ARRAY(padlist);
+               svp = (SV**) PADLIST_ARRAY(padlist);
                while (++i <= PADLIST_MAX(padlist)) { /* Depth. */
                    SV **args;