summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorGisle Aas <gisle@aas.no>1998-07-07 19:48:36 +0200
committerGurusamy Sarathy <gsar@cpan.org>1998-07-08 02:28:30 +0000
commit827b7e14e1e607ab4ad9d3216e9bea55f7e0b975 (patch)
tree781251208600e2bd75ae7671142159e996556c80 /sv.c
parent7e86de3e163f833ae89c22b4ee3418ae793e26c5 (diff)
downloadperl-827b7e14e1e607ab4ad9d3216e9bea55f7e0b975.tar.gz
Remove some rendundant SvOOK_on tests
Message-ID: <m3vhp94q7f.fsf@furu.g.aas.no> p4raw-id: //depot/perl@1366
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sv.c b/sv.c
index f37989eab4..2c9afc726e 100644
--- a/sv.c
+++ b/sv.c
@@ -1209,14 +1209,8 @@ sv_setnv(register SV *sv, double num)
case SVt_PV:
case SVt_PVIV:
sv_upgrade(sv, SVt_PVNV);
- /* FALL THROUGH */
- case SVt_PVNV:
- case SVt_PVMG:
- case SVt_PVBM:
- case SVt_PVLV:
- if (SvOOK(sv))
- (void)SvOOK_off(sv);
break;
+
case SVt_PVGV:
if (SvFAKE(sv)) {
sv_unglob(sv);