summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorAndy Lester <andy@petdance.com>2005-06-06 18:08:50 -0500
committerH.Merijn Brand <h.m.brand@xs4all.nl>2005-06-07 08:18:59 +0000
commit862a34c634844bb3ea22e5f44bdaf2e973831a89 (patch)
tree77292e7d3d639e71bc2aca9df160653ecea15005 /toke.c
parentc158a4fd68e274329d9ffd7198cb9eb1b21b0dfe (diff)
downloadperl-862a34c634844bb3ea22e5f44bdaf2e973831a89.tar.gz
Unvoid SvUPGRADE
Message-ID: <20050607040850.GA7033@petdance.com> p4raw-id: //depot/perl@24717
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toke.c b/toke.c
index 7ee1b07955..314ebc713b 100644
--- a/toke.c
+++ b/toke.c
@@ -1027,7 +1027,7 @@ S_force_version(pTHX_ char *s, int guessing)
version = yylval.opval;
ver = cSVOPx(version)->op_sv;
if (SvPOK(ver) && !SvNIOK(ver)) {
- (void)SvUPGRADE(ver, SVt_PVNV);
+ SvUPGRADE(ver, SVt_PVNV);
SvNV_set(ver, str_to_version(ver));
SvNOK_on(ver); /* hint that it is a version */
}
@@ -2150,7 +2150,7 @@ Perl_filter_add(pTHX_ filter_t funcp, SV *datasv)
PL_rsfp_filters = newAV();
if (!datasv)
datasv = NEWSV(255,0);
- (void)SvUPGRADE(datasv, SVt_PVIO);
+ SvUPGRADE(datasv, SVt_PVIO);
u.filter = funcp;
IoANY(datasv) = u.iop; /* stash funcp into spare field */
IoFLAGS(datasv) |= IOf_FAKE_DIRP;