Using RB_BIGNUM_TYPE_P macro

This commit is contained in:
S-H-GAMELINKS 2021-09-03 20:50:12 +09:00 committed by Nobuyoshi Nakada
parent 56065f0686
commit 032534dbdf
Notes: git 2021-09-11 09:13:46 +09:00
15 changed files with 104 additions and 107 deletions

View file

@ -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);
}