Skip to content

Commit

Permalink
Merge f002567 into 07a5ce6
Browse files Browse the repository at this point in the history
  • Loading branch information
happy-barney committed Aug 17, 2021
2 parents 07a5ce6 + f002567 commit a58f9a9
Show file tree
Hide file tree
Showing 6 changed files with 1,379 additions and 1,494 deletions.
11 changes: 6 additions & 5 deletions op.c
Expand Up @@ -9200,17 +9200,18 @@ Perl_newASSIGNOP(pTHX_ I32 flags, OP *left, I32 optype, OP *right)
OP *o;
I32 assign_type;

if (optype) {
if (optype == OP_ANDASSIGN || optype == OP_ORASSIGN || optype == OP_DORASSIGN) {
switch (optype) {
case 0: break;
case OP_ANDASSIGN:
case OP_ORASSIGN:
case OP_DORASSIGN:
right = scalar(right);
return newLOGOP(optype, 0,
op_lvalue(scalar(left), optype),
newBINOP(OP_SASSIGN, OPpASSIGN_BACKWARDS<<8, right, right));
}
else {
default:
return newBINOP(optype, OPf_STACKED,
op_lvalue(scalar(left), optype), scalar(right));
}
}

if ((assign_type = assignment_type(left)) == ASSIGN_LIST) {
Expand Down

0 comments on commit a58f9a9

Please sign in to comment.