Permalink
Browse files

[IR] Reapplied fix from f15ecdc

which was lost in the recent refactorings.
  • Loading branch information...
1 parent d62a1a4 commit 45b34fb860eea20ccf86d9d3e312159ab262ae3e @subbuss subbuss committed Mar 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);

0 comments on commit 45b34fb

Please sign in to comment.