summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-01-24 12:50:32 +0000
committerNicholas Clark <nick@ccl4.org>2008-01-24 12:50:32 +0000
commitc6fdafd0fef3b735d3a7b9441840698d27fe4e6b (patch)
tree908c7569373a36970a0c8fe3311798a60b514fe4 /sv.c
parent8b73ab1881b775e12ace39efe757716ab526e9db (diff)
downloadperl-c6fdafd0fef3b735d3a7b9441840698d27fe4e6b.tar.gz
Change the context type of for ($a .. $b) to CXt_LOOP_LAZYIV, and
assert that it isn't using cx->blk_loop.iterlval. Fix a casting bug when assigning a sentinal to cx->blk_loop.iterary. p4raw-id: //depot/perl@33061
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sv.c b/sv.c
index 1feaa3e9dc..33293a5eeb 100644
--- a/sv.c
+++ b/sv.c
@@ -10542,6 +10542,7 @@ Perl_cx_dup(pTHX_ PERL_CONTEXT *cxs, I32 ix, I32 max, CLONE_PARAMS* param)
param);
ncx->blk_eval.cur_text = sv_dup(ncx->blk_eval.cur_text, param);
break;
+ case CXt_LOOP_LAZYIV:
case CXt_LOOP_FOR:
ncx->blk_loop.iterary = av_dup_inc(ncx->blk_loop.iterary,
param);