attributes::reftype() doesn't work on tied argument
Gurusamy Sarathy [Fri, 28 Apr 2000 07:27:20 +0000 (07:27 +0000)]
p4raw-id: //depot/perl@5984

xsutils.c

index 0f5989b..b4161b0 100644 (file)
--- 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);