diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-11-08 18:50:40 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-11-08 18:50:40 +0000 |
commit | 350de78d9c02710bb008e9ca922c78ba251ec366 (patch) | |
tree | 6d721d7c176e73d19432c7bee8dc5f75d5572bda /doio.c | |
parent | d18c61170a30691556a1da7413e13241a92f4e0a (diff) | |
download | perl-350de78d9c02710bb008e9ca922c78ba251ec366.tar.gz |
preliminary support for GVOP indirection via pad
p4raw-id: //depot/perl@4539
Diffstat (limited to 'doio.c')
-rw-r--r-- | doio.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1064,7 +1064,7 @@ Perl_my_stat(pTHX) if (PL_op->op_flags & OPf_REF) { EXTEND(SP,1); - tmpgv = (GV*)cSVOP->op_sv; + tmpgv = cGVOP; do_fstat: io = GvIO(tmpgv); if (io && IoIFP(io)) { @@ -1117,7 +1117,7 @@ Perl_my_lstat(pTHX) STRLEN n_a; if (PL_op->op_flags & OPf_REF) { EXTEND(SP,1); - if ((GV*)cSVOP->op_sv == PL_defgv) { + if (cGVOP == PL_defgv) { if (PL_laststype != OP_LSTAT) Perl_croak(aTHX_ "The stat preceding -l _ wasn't an lstat"); return PL_laststatval; |