Add a single (void **) cast to make the C code also valid as C++
Nicholas Clark [Thu, 12 May 2011 08:43:02 +0000 (09:43 +0100)]
Size.xs

diff --git a/Size.xs b/Size.xs
index 7cd3ea7..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--);