X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=blobdiff_plain;f=xs-src%2FMouseUtil.xs;h=828982857161ec3e8321fd99180deb1984aa9bcd;hp=6af7e03981034db056c77591dd820ee412dfb118;hb=80aa5731d6763d8f38ba0fa057729af7026e6580;hpb=5132ec428048d13768f6bb012b779b991c45658e diff --git a/xs-src/MouseUtil.xs b/xs-src/MouseUtil.xs index 6af7e03..8289828 100644 --- a/xs-src/MouseUtil.xs +++ b/xs-src/MouseUtil.xs @@ -44,7 +44,7 @@ mouse_mro_get_linear_isa(pTHX_ HV* const stash){ avref = POPs; PUTBACK; - if(SvROK(avref) && SvTYPE(SvRV(avref)) == SVt_PVAV){ + if(IsArrayRef(avref)){ AV* const av = (AV*)SvRV(avref); I32 const len = AvFILLp(av) + 1; I32 i;