summaryrefslogtreecommitdiff
path: root/complex.c
diff options
context:
space:
mode:
Diffstat (limited to 'complex.c')
-rw-r--r--complex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/complex.c b/complex.c
index 357e53c865..0d4073018d 100644
--- a/complex.c
+++ b/complex.c
@@ -238,13 +238,13 @@ k_numeric_p(VALUE x)
inline static VALUE
k_fixnum_p(VALUE x)
{
- return f_kind_of_p(x, rb_cFixnum);
+ return FIXNUM_P(x);
}
inline static VALUE
k_bignum_p(VALUE x)
{
- return f_kind_of_p(x, rb_cBignum);
+ return RB_TYPE_P(x, T_BIGNUM);
}
inline static VALUE