Skip to content
Browse files

Pass arithmetics_24.php

git-svn-id: https://svn.parrot.org/parrot/trunk@28356 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information...
1 parent 87323f8 commit b5fcd25dc8d0d495db7105911c4c09bb1db90dfa @bschmalhofer bschmalhofer committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 languages/plumhead/src/pct/actions.pm
View
2 languages/plumhead/src/pct/actions.pm
@@ -108,7 +108,7 @@ method adding_expression($/) {
if $<adding_tail> {
for $<adding_tail> {
my $past_prev := $past;
- my $pir_op := 'n_add';
+ my $pir_op := $_<ADD_OP> eq '+' ?? 'n_add' !! 'n_sub';
$past := PAST::Op.new(
$past_prev,
$( $_<multiplying_expression><unary_expression> ),

0 comments on commit b5fcd25

Please sign in to comment.
Something went wrong with that request. Please try again.