From: Gurusamy Sarathy Date: Fri, 28 Apr 2000 07:27:20 +0000 (+0000) Subject: attributes::reftype() doesn't work on tied argument X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4694d0eaf09e23800ff4cc507408eb49b7fd0b3b;p=p5sagit%2Fp5-mst-13.2.git attributes::reftype() doesn't work on tied argument p4raw-id: //depot/perl@5984 --- diff --git a/xsutils.c b/xsutils.c index 0f5989b..b4161b0 100644 --- a/xsutils.c +++ b/xsutils.c @@ -253,6 +253,8 @@ usage: rv = ST(0); ST(0) = TARG; + if (SvGMAGICAL(rv)) + mg_get(rv); if (!(SvOK(rv) && SvROK(rv))) goto usage; sv = SvRV(rv);