mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
2fc973796a
commit
f1183cb910
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
Mon May 2 06:58:38 2016 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* complex.c: Don't refer rb_cFixnum and rb_cBignum.
|
||||||
|
(k_fixnum_p): Use FIXNUM_P.
|
||||||
|
(k_bignum_p): Use RB_TYPE_P.
|
||||||
|
|
||||||
Mon May 2 01:27:59 2016 Tanaka Akira <akr@fsij.org>
|
Mon May 2 01:27:59 2016 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* test/ruby/test_numeric.rb (test_step): Use Integer::FIXNUM_MAX.
|
* test/ruby/test_numeric.rb (test_step): Use Integer::FIXNUM_MAX.
|
||||||
|
|
|
@ -238,13 +238,13 @@ k_numeric_p(VALUE x)
|
||||||
inline static VALUE
|
inline static VALUE
|
||||||
k_fixnum_p(VALUE x)
|
k_fixnum_p(VALUE x)
|
||||||
{
|
{
|
||||||
return f_kind_of_p(x, rb_cFixnum);
|
return FIXNUM_P(x);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline static VALUE
|
inline static VALUE
|
||||||
k_bignum_p(VALUE x)
|
k_bignum_p(VALUE x)
|
||||||
{
|
{
|
||||||
return f_kind_of_p(x, rb_cBignum);
|
return RB_TYPE_P(x, T_BIGNUM);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline static VALUE
|
inline static VALUE
|
||||||
|
|
Loading…
Reference in a new issue