Skip to content
Permalink
Browse files
[Truffle] Fix order of specializations for RangeLiteralNode.
  • Loading branch information
eregon committed Oct 31, 2014
1 parent e52f6bf commit 7bce91f995e355f6139367c92cc6a622e5c00050
Showing 1 changed file with 2 additions and 2 deletions.
@@ -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);
}

0 comments on commit 7bce91f

Please sign in to comment.