aboutsummaryrefslogtreecommitdiffstats
path: root/complex.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-01 21:59:41 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-01 21:59:41 +0000
commit07e5581e7abf15b6ba2abc5121a51cf3592e6e31 (patch)
treed8ef6b2d68967a17c63c9dc6a8919e10d8be0bb4 /complex.c
parenta4b82bcc2f4910292abffb203e6ad7b1ed7d7316 (diff)
downloadruby-07e5581e7abf15b6ba2abc5121a51cf3592e6e31.tar.gz
complex.c don't refer rb_cFixnum and rb_cBignum.
* complex.c: Don't refer rb_cFixnum and rb_cBignum. (k_fixnum_p): Use FIXNUM_P. (k_bignum_p): Use RB_TYPE_P. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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