Add a single (void **) cast to make the C code also valid as C++
[p5sagit/Devel-Size.git] / Size.xs
diff --git a/Size.xs b/Size.xs
index b18e046..e958bef 100644 (file)
--- a/Size.xs
+++ b/Size.xs
@@ -146,7 +146,7 @@ free_tracking_at(void **tv, int level)
        /* Nodes */
        do {
            if (tv[i]) {
-               free_tracking_at(tv[i], level);
+               free_tracking_at((void **) tv[i], level);
                Safefree(tv[i]);
            }
        } while (i--);
@@ -831,6 +831,9 @@ new_state(pTHX)
     check_new(st, &PL_sv_undef);
     check_new(st, &PL_sv_no);
     check_new(st, &PL_sv_yes);
+#if PERL_VERSION > 8 || (PERL_VERSION == 8 && PERL_SUBVERSION > 0)
+    check_new(st, &PL_sv_placeholder);
+#endif
     return st;
 }