summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index 5c09465196..1e4d867f9d 100644
--- a/string.c
+++ b/string.c
@@ -2746,7 +2746,7 @@ rb_str_concat(VALUE str1, VALUE str2)
rb_encoding *enc = STR_ENC_GET(str1);
int encidx;
- if (FIXNUM_P(str2) || RB_TYPE_P(str2, T_BIGNUM)) {
+ if (RB_INTEGER_TYPE_P(str2)) {
if (rb_num_to_uint(str2, &code) == 0) {
}
else if (FIXNUM_P(str2)) {