Skip to content

Commit

Permalink
Merge 7694af3 into 3bbdeca
Browse files Browse the repository at this point in the history
  • Loading branch information
happy-barney committed Aug 24, 2021
2 parents 3bbdeca + 7694af3 commit 38cc9b3
Show file tree
Hide file tree
Showing 8 changed files with 1,530 additions and 1,491 deletions.
1 change: 1 addition & 0 deletions MANIFEST
Expand Up @@ -5919,6 +5919,7 @@ t/op/lexsub.t See if lexical subroutines work
t/op/lfs.t See if large files work for perlio
t/op/list.t See if lists and list slices work
t/op/local.t See if local works
t/op/local-sub.t See if local sub works
t/op/localref.t See if local ${deref} works
t/op/lock.t Tests for lock args & retval (no threads)
t/op/loopctl.t See if next/last/redo work
Expand Down
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 38cc9b3

Please sign in to comment.