Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/main/java/org/jruby/RubyEnumerable.java
Original file line number Diff line number Diff line change
@@ -54,6 +54,7 @@
import static org.jruby.CompatVersion.RUBY1_8;
import static org.jruby.CompatVersion.RUBY1_9;
import static org.jruby.RubyEnumerator.enumeratorize;
import static org.jruby.RubyObject.equalInternal;
import static org.jruby.runtime.Helpers.invokedynamic;
import static org.jruby.runtime.invokedynamic.MethodNames.OP_CMP;

@@ -666,7 +667,7 @@ public static IRubyObject find_indexCommon(ThreadContext context, IRubyObject se
callEach(runtime, context, self, Arity.ONE_ARGUMENT, new BlockCallback() {
public IRubyObject call(ThreadContext ctx, IRubyObject[] largs, Block blk) {
IRubyObject larg = packEnumValues(runtime, largs);
if (larg.equals(cond)) throw JumpException.SPECIAL_JUMP;
if (equalInternal(ctx, larg, cond)) throw JumpException.SPECIAL_JUMP;
result[0]++;
return runtime.getNil();
}

0 comments on commit f131465

Please sign in to comment.