Skip to content

Commit

Permalink
Merge pull request #546 from dpvc/issue455
Browse files Browse the repository at this point in the history
Use parens again if negative is factored out.  (#455)
  • Loading branch information
Alex-Jordan authored Mar 15, 2021
2 parents 860a2b2 + ff8d5e3 commit e860e04
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Parser/BOP.pm
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ sub makeZero {
sub makeNeg {
my $self = shift;
$self->{lop} = shift; $self->{rop} = shift;
delete $self->{lop}{noParens};
delete $self->{rop}{noParens};
return Parser::UOP::Neg($self);
}

Expand Down

0 comments on commit e860e04

Please sign in to comment.