summaryrefslogtreecommitdiff
path: root/cop.h
diff options
context:
space:
mode:
authorChip Salzenberg <chip@pobox.com>2010-07-27 23:40:56 -0700
committerChip Salzenberg <chip@pobox.com>2010-07-27 23:40:56 -0700
commit109bf713de022d5340396fd57331bb452da6e986 (patch)
treed847cb77c3e3538f3202231d18def7d2889befcd /cop.h
parent395b8e2d02eadc9b0639534410c39c530bc8a33d (diff)
downloadperl-109bf713de022d5340396fd57331bb452da6e986.tar.gz
Revert "Fix off-by-one: avoid allocating an extra context"
This reverts commit 395b8e2d02eadc9b0639534410c39c530bc8a33d. The fencepost error is coming from inside the programmer!
Diffstat (limited to 'cop.h')
-rw-r--r--cop.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cop.h b/cop.h
index 7d90891a50..e5370c4915 100644
--- a/cop.h
+++ b/cop.h
@@ -732,7 +732,7 @@ struct context {
#define CxFOREACHDEF(c) ((CxTYPE_is_LOOP(c) && CxTYPE(c) != CXt_LOOP_PLAIN) \
&& ((c)->cx_type & CXp_FOR_DEF))
-#define CXINC ((cxstack_ix + 1) < cxstack_max ? ++cxstack_ix : (cxstack_ix = cxinc()))
+#define CXINC (cxstack_ix < cxstack_max ? ++cxstack_ix : (cxstack_ix = cxinc()))
/*
=head1 "Gimme" Values