Use RB_INTEGER_TYPE_P
This commit is contained in:
parent
6de61fb9ed
commit
ffe4a6ebf9
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user