summaryrefslogtreecommitdiff
path: root/strftime.c
diff options
context:
space:
mode:
authorS-H-GAMELINKS <gamelinks007@gmail.com>2021-09-03 20:50:12 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-09-11 09:13:24 +0900
commit032534dbdf08c0912dffa482e29a491b8aa9276c (patch)
tree0ef482a3c7d764610ae9e3a0c737fa3133032de7 /strftime.c
parent56065f0686e6798fff2ee7319f0f03026f427c13 (diff)
downloadruby-032534dbdf08c0912dffa482e29a491b8aa9276c.tar.gz
Using RB_BIGNUM_TYPE_P macro
Diffstat (limited to 'strftime.c')
-rw-r--r--strftime.c2
1 files changed, 1 insertions, 1 deletions
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);
}