summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorGisle Aas <gisle@aas.no>1998-07-07 13:48:11 +0200
committerGurusamy Sarathy <gsar@cpan.org>1998-07-08 02:30:55 +0000
commitd426b052dee31c20224ef2893d5c969ad5a2c617 (patch)
tree0f15870d4f60c065379c6a4eba05c8157050abc9 /pp_ctl.c
parent827b7e14e1e607ab4ad9d3216e9bea55f7e0b975 (diff)
downloadperl-d426b052dee31c20224ef2893d5c969ad5a2c617.tar.gz
Faster foreach integer range
Message-ID: <m3k95qm1pg.fsf@furu.g.aas.no> p4raw-id: //depot/perl@1367
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index bdc371f047..b1d2f68dc2 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -1388,6 +1388,7 @@ PP(pp_enteriter)
croak("Range iterator outside integer range");
cx->blk_loop.iterix = SvIV(sv);
cx->blk_loop.itermax = SvIV((SV*)cx->blk_loop.iterary);
+ sv_setiv(*svp, 0); /* make sure index SV is IV capable */
}
else
cx->blk_loop.iterlval = newSVsv(sv);