Skip to content

Commit

Permalink
fix off-by-one in highest_child_id calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
timo committed Nov 26, 2018
1 parent 1200e2a commit 490fd76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm/moar/HLL/Backend.nqp
Expand Up @@ -193,7 +193,7 @@ class HLL::Backend::MoarVM {
note(nqp::getmessage($!));
}
}
$node<highest_child_id> := $node-id-counter - 1;
$node<highest_child_id> := $node-id-counter;
}

sub to_json($obj) {
Expand Down

1 comment on commit 490fd76

@lizmat
Copy link
Contributor

@lizmat lizmat commented on 490fd76 Nov 26, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any idea on what kind of problems this fixed?

Please sign in to comment.