diff options
author | Nicholas Clark <nick@ccl4.org> | 2008-10-29 23:20:01 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2008-10-29 23:20:01 +0000 |
commit | a45c7426c93f17067d1734c68cb400246e1db490 (patch) | |
tree | e085a582d4f0b4b9dac9b8741884c96da1bee43a /pp_sys.c | |
parent | 76f68e9bb86f29e34e2aeb5c177571288f05b7ca (diff) | |
download | perl-a45c7426c93f17067d1734c68cb400246e1db490.tar.gz |
Add MUTABLE_IO(), and eliminate (IO *) casts in *.c.
p4raw-id: //depot/perl@34654
Diffstat (limited to 'pp_sys.c')
-rw-r--r-- | pp_sys.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2207,7 +2207,7 @@ PP(pp_truncate) goto do_ftruncate_gv; } else if (SvROK(sv) && SvTYPE(SvRV(sv)) == SVt_PVIO) { - io = (IO*) SvRV(sv); /* *main::FRED{IO} for example */ + io = MUTABLE_IO(SvRV(sv)); /* *main::FRED{IO} for example */ goto do_ftruncate_io; } @@ -2854,7 +2854,7 @@ PP(pp_stat) goto do_fstat_warning_check; goto do_fstat; } else if (SvROK(sv) && SvTYPE(SvRV(sv)) == SVt_PVIO) { - io = (IO*)SvRV(sv); + io = MUTABLE_IO(SvRV(sv)); if (PL_op->op_type == OP_LSTAT) goto do_fstat_warning_check; goto do_fstat_have_io; |