Skip to content

Commit

Permalink
[Truffle] Removed some useless bounds checks.
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvdrum committed Mar 16, 2015
1 parent 7b526f1 commit 49a3dfd
Showing 1 changed file with 0 additions and 4 deletions.
Expand Up @@ -378,10 +378,6 @@ public Object toTruffle(IRubyObject object) {
final long value = ((org.jruby.RubyFixnum) object).getLongValue();

if (value < Integer.MIN_VALUE || value > Integer.MAX_VALUE) {
if (value < Long.MIN_VALUE || value > Long.MAX_VALUE) {
throw new UnsupportedOperationException();
}

return value;
}

Expand Down

0 comments on commit 49a3dfd

Please sign in to comment.