diff options
author | mrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-26 07:57:15 +0000 |
---|---|---|
committer | mrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-26 07:57:15 +0000 |
commit | 2234edf0b1183e0d6f63ac093243fc6e23e15dd5 (patch) | |
tree | 366e0950459b1f285413a3de5a3b19a5b8a4fc58 /dir.c | |
parent | cc4be225a8c1dd5f42a4c4b6356b0b351b6e85d5 (diff) | |
download | ruby-2234edf0b1183e0d6f63ac093243fc6e23e15dd5.tar.gz |
Use RB_INTEGER_TYPE_P instead of rb_obj_is_kind_of
For checking whether an object is an Integer, because a subclass of
Integer is meaningless in Ruby, RB_INTEGER_TYPE_P is better than
rb_obj_is_kind_of for speed.
* object.c (rb_to_integer): Use RB_INTEGER_TYPE_P instead of rb_obj_is_kind_of.
* object.c (rb_check_to_integer): ditto.
* range.c (range_max): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dir.c')
0 files changed, 0 insertions, 0 deletions