1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Use RB_INTEGER_TYPE_P

This commit is contained in:
Nobuyoshi Nakada 2019-08-02 11:22:56 +09:00
parent 6de61fb9ed
commit ffe4a6ebf9
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -119,7 +119,12 @@ f_abs(VALUE x)
return rb_funcall(x, id_abs, 0);
}
fun1(integer_p)
inline static VALUE
f_integer_p(VALUE x)
{
return RB_INTEGER_TYPE_P(x);
}
inline static VALUE
f_to_i(VALUE x)