summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChip Salzenberg <chip@perl.com>1997-03-07 03:46:36 +1200
committerChip Salzenberg <chip@atlantic.net>1997-04-09 00:00:00 +0000
commitb25809da6d2fc5e61497c7df6731abd5b4a2b2a8 (patch)
treeec3ad8a050aa53b233543975742e2d7877b40acd
parent51aa1f50381e5da72a88a12f8d8c09a5fc718cf7 (diff)
downloadperl-b25809da6d2fc5e61497c7df6731abd5b4a2b2a8.tar.gz
Fix label on C<for(;;)> statement
-rw-r--r--perly.c4
-rw-r--r--perly.y4
2 files changed, 4 insertions, 4 deletions
diff --git a/perly.c b/perly.c
index 848094953a..b25b2fa811 100644
--- a/perly.c
+++ b/perly.c
@@ -1628,8 +1628,8 @@ case 32:
#line 209 "perly.y"
{ copline = yyvsp[-9].ival;
yyval.opval = block_end(yyvsp[-7].ival,
- append_elem(OP_LINESEQ, scalar(yyvsp[-6].opval),
- newSTATEOP(0, yyvsp[-10].pval,
+ newSTATEOP(0, yyvsp[-10].pval,
+ append_elem(OP_LINESEQ, scalar(yyvsp[-6].opval),
newWHILEOP(0, 1, (LOOP*)Nullop,
scalar(yyvsp[-4].opval),
yyvsp[0].opval, scalar(yyvsp[-2].opval))))); }
diff --git a/perly.y b/perly.y
index b181d5fb39..3bf1fdaf60 100644
--- a/perly.y
+++ b/perly.y
@@ -208,8 +208,8 @@ loop : label WHILE '(' remember mtexpr ')' mblock cont
/* basically fake up an initialize-while lineseq */
{ copline = $2;
$$ = block_end($4,
- append_elem(OP_LINESEQ, scalar($5),
- newSTATEOP(0, $1,
+ newSTATEOP(0, $1,
+ append_elem(OP_LINESEQ, scalar($5),
newWHILEOP(0, 1, (LOOP*)Nullop,
scalar($7),
$11, scalar($9))))); }