This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
attributes::reftype() doesn't work on tied argument
authorGurusamy Sarathy <gsar@cpan.org>
Fri, 28 Apr 2000 07:27:20 +0000 (07:27 +0000)
committerGurusamy Sarathy <gsar@cpan.org>
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);