summaryrefslogtreecommitdiff
path: root/doio.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-10-29 23:20:01 +0000
committerNicholas Clark <nick@ccl4.org>2008-10-29 23:20:01 +0000
commita45c7426c93f17067d1734c68cb400246e1db490 (patch)
treee085a582d4f0b4b9dac9b8741884c96da1bee43a /doio.c
parent76f68e9bb86f29e34e2aeb5c177571288f05b7ca (diff)
downloadperl-a45c7426c93f17067d1734c68cb400246e1db490.tar.gz
Add MUTABLE_IO(), and eliminate (IO *) casts in *.c.
p4raw-id: //depot/perl@34654
Diffstat (limited to 'doio.c')
-rw-r--r--doio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/doio.c b/doio.c
index b0dd4f26fc..506470504e 100644
--- a/doio.c
+++ b/doio.c
@@ -1316,7 +1316,7 @@ Perl_my_stat(pTHX)
goto do_fstat;
}
else if (SvROK(sv) && SvTYPE(SvRV(sv)) == SVt_PVIO) {
- io = (IO*)SvRV(sv);
+ io = MUTABLE_IO(SvRV(sv));
gv = NULL;
goto do_fstat_have_io;
}