We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 900aad5 commit d7ccbedCopy full SHA for d7ccbed
src/main/java/org/truffleruby/parser/ReloadArgumentsTranslator.java
@@ -89,12 +89,11 @@ public RubyNode visitArgsNode(ArgsParseNode node) {
89
int postCount = node.getPostCount();
90
91
if (postCount > 0) {
92
- index = -1;
93
-
+ index = -postCount;
94
int postIndex = node.getPostIndex();
95
- for (int i = postCount - 1; i >= 0; i--) {
+ for (int i = 0; i < postCount; i++) {
96
sequence.add(args[postIndex + i].accept(this));
97
- index--;
+ index++;
98
}
99
100
0 commit comments