diff options
author | Gisle Aas <gisle@aas.no> | 1998-07-07 13:48:11 +0200 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1998-07-08 02:30:55 +0000 |
commit | d426b052dee31c20224ef2893d5c969ad5a2c617 (patch) | |
tree | 0f15870d4f60c065379c6a4eba05c8157050abc9 /pp_ctl.c | |
parent | 827b7e14e1e607ab4ad9d3216e9bea55f7e0b975 (diff) | |
download | perl-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |