X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=xs-src%2FMouseUtil.xs;h=828982857161ec3e8321fd99180deb1984aa9bcd;hb=da4432f337513a1c3c791a4e6753a4b743cf3f62;hp=6af7e03981034db056c77591dd820ee412dfb118;hpb=6582d0e35a9937aa8869d868f10172935f48e1ce;p=gitmo%2FMouse.git 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;