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
|
@ -219,7 +219,7 @@ case_conv(char *s, ptrdiff_t i, int flags)
|
|||
static VALUE
|
||||
format_value(VALUE val, int base)
|
||||
{
|
||||
if (!RB_TYPE_P(val, T_BIGNUM))
|
||||
if (!RB_BIGNUM_TYPE_P(val))
|
||||
val = rb_Integer(val);
|
||||
return rb_big2str(val, base);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue