Skip to content

Commit

Permalink
[Truffle] Fix order of specializations for RangeLiteralNode.
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Oct 31, 2014
1 parent e52f6bf commit 7bce91f
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -49,12 +49,12 @@ public RubyRange.LongFixnumRange doRange(int begin, long end) {
}

@Specialization
public RubyRange.LongFixnumRange doRange(long begin, long end) {
public RubyRange.LongFixnumRange doRange(long begin, int end) {
return new RubyRange.LongFixnumRange(getContext().getCoreLibrary().getRangeClass(), begin, end, excludeEnd);
}

@Specialization
public RubyRange.LongFixnumRange doRange(long begin, int end) {
public RubyRange.LongFixnumRange doRange(long begin, long end) {
return new RubyRange.LongFixnumRange(getContext().getCoreLibrary().getRangeClass(), begin, end, excludeEnd);
}

Expand Down

0 comments on commit 7bce91f

Please sign in to comment.