Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[IR] Reapplied fix from f15ecdc

which was lost in the recent refactorings.
  • Loading branch information...
commit 45b34fb860eea20ccf86d9d3e312159ab262ae3e 1 parent d62a1a4
@subbuss subbuss authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/org/jruby/compiler/ir/instructions/CallBase.java
View
2  src/org/jruby/compiler/ir/instructions/CallBase.java
@@ -347,7 +347,7 @@ public Object interpret(ThreadContext context, DynamicScope dynamicScope, IRubyO
int numArgs = args.length;
for (int i = 0; i < numArgs; i++) {
IRubyObject rArg = (IRubyObject) args[i].retrieve(context, self, currDynScope, temp);
- if (args[i] instanceof Splat) {
+ if ((numArgs == 1) && args[i] instanceof Splat) {
argList.addAll(Arrays.asList(((RubyArray)rArg).toJavaArray()));
} else {
argList.add(rArg);
Please sign in to comment.
Something went wrong with that request. Please try again.