From 032534dbdf08c0912dffa482e29a491b8aa9276c Mon Sep 17 00:00:00 2001 From: S-H-GAMELINKS Date: Fri, 3 Sep 2021 20:50:12 +0900 Subject: Using RB_BIGNUM_TYPE_P macro --- strftime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'strftime.c') diff --git a/strftime.c b/strftime.c index 4451fe3c6b..a8a688608e 100644 --- a/strftime.c +++ b/strftime.c @@ -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); } -- cgit v1.2.3