Skip to content

Commit 04b2b06

Browse files
committed
Workaround ECJ warning in generated code for MatchDataNodes.GetIndexNode
1 parent 5c164d6 commit 04b2b06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/truffleruby/core/regexp/MatchDataNodes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ protected Object getIndexString(RubyMatchData matchData, RubyString index, NotPr
305305

306306
@Specialization(
307307
guards = { "!isInteger(index)", "!isRubySymbol(index)", "!isRubyString(index)", "!isIntRange(index)" })
308-
protected Object getIndex(RubyMatchData matchData, Object index, NotProvided length,
308+
protected Object getIndexCoerce(RubyMatchData matchData, Object index, NotProvided length,
309309
@Cached ToIntNode toIntNode) {
310310
return executeGetIndex(matchData, toIntNode.execute(index), NotProvided.INSTANCE);
311311
}

0 commit comments

Comments
 (0)