summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-01-24 12:15:43 +0000
committerNicholas Clark <nick@ccl4.org>2008-01-24 12:15:43 +0000
commit8b73ab1881b775e12ace39efe757716ab526e9db (patch)
tree77e2507e7b3c3091aaf3ce80350563affb45ad0c /pp_ctl.c
parenta28356daf92caa7f638e39190a3f2c5a3cd8acfe (diff)
downloadperl-8b73ab1881b775e12ace39efe757716ab526e9db.tar.gz
Avoid using cx->blk_loop.itermax when reverse iterating an array.
p4raw-id: //depot/perl@33060
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index c857916e99..c0f0724a39 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -1918,7 +1918,7 @@ PP(pp_enteriter)
}
}
else if (PL_op->op_private & OPpITER_REVERSED) {
- cx->blk_loop.itermax = 0;
+ cx->blk_loop.itermax = 0xDEADBEEF;
cx->blk_loop.iterix = AvFILL(cx->blk_loop.iterary) + 1;
}