mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Using RB_BIGNUM_TYPE_P macro
This commit is contained in:
parent
56065f0686
commit
032534dbdf
Notes:
git
2021-09-11 09:13:46 +09:00
15 changed files with 104 additions and 107 deletions
|
@ -1058,7 +1058,7 @@ rb_complex_pow(VALUE self, VALUE other)
|
|||
if (k_numeric_p(other) && f_real_p(other)) {
|
||||
VALUE r, theta;
|
||||
|
||||
if (RB_TYPE_P(other, T_BIGNUM))
|
||||
if (RB_BIGNUM_TYPE_P(other))
|
||||
rb_warn("in a**b, b may be too big");
|
||||
|
||||
r = f_abs(self);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue