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 /gv.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 'gv.c')
-rw-r--r-- | gv.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1499,7 +1499,7 @@ Perl_newIO(pTHX) { dVAR; GV *iogv; - IO * const io = (IO*)newSV_type(SVt_PVIO); + IO * const io = MUTABLE_IO(newSV_type(SVt_PVIO)); /* This used to read SvREFCNT(io) = 1; It's not clear why the reference count needed an explicit reset. NWC */ |