This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
sv.c:sv_grow: accept read-only COWs
authorFather Chrysostomos <sprout@cpan.org>
Sun, 11 Aug 2013 21:38:08 +0000 (14:38 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Mon, 12 Aug 2013 08:53:26 +0000 (01:53 -0700)
commite0060e30a691e43bb2fb3e566faa3878a95f8af4
tree658222b6be875dce5e98313dadf4e91d3782316c
parent90b0dc0e2e44e9b8e3b9054e94bdb7d4eee1b763
sv.c:sv_grow: accept read-only COWs

sv_grow has long been permitted on read-only scalars.  This stopped
being the case all the time when 9a0a85075 and 1620522e4 allowed read-
nly copy-on-write scalars.  Because sv_force_normal has multiple
uses, sv_grow ended up croaking on *these* read-only scalars, but
not others.

This commit makes things consistent with the way they used to be.
sv.c