Skip to content

Commit

Permalink
[Truffle] check_funcall code review updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Fish committed Sep 20, 2016
1 parent cd5efd5 commit 2e7a90c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions truffle/src/main/ruby/core/type.rb
Expand Up @@ -247,7 +247,7 @@ def self.rb_to_int(val)
end

def self.rb_to_integer(val, meth)
return val if object_kind_of?(val, Fixnum) || object_kind_of?(val, Bignum)
return val if object_kind_of?(val, Integer)
res = convert_type(val, Integer, meth, true)
unless object_kind_of?(res, Integer)
conversion_mismatch(val, Integer, meth, res)
Expand All @@ -271,7 +271,6 @@ def self.check_long(val)
end
end


def self.rb_check_convert_type(obj, cls, meth)
return obj if object_kind_of?(obj, cls)
v = convert_type(obj, cls, meth, false)
Expand Down

0 comments on commit 2e7a90c

Please sign in to comment.