X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FDevel-Size.git;a=blobdiff_plain;f=Size.xs;h=109dd15fc0f802c16c02838339987696764c25e1;hp=05e540a99d4731580fe84ed74246c3367eedd08e;hb=ad06a65004e9646ccce249df1783cc23f441f946;hpb=697012cd88aeaccae5f96e1efa8feed731ed53bf diff --git a/Size.xs b/Size.xs index 05e540a..109dd15 100644 --- a/Size.xs +++ b/Size.xs @@ -707,7 +707,7 @@ sv_size(pTHX_ struct state *const st, const SV * const orig_thing, } st->total_size += sizeof(SV) + body_sizes[type]; - if (type >= SVt_PVMG) { + if (SvMAGICAL(thing)) { magic_size(aTHX_ thing, st); }