summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numeric.c b/numeric.c
index 4816140d97..dad085e890 100644
--- a/numeric.c
+++ b/numeric.c
@@ -1974,7 +1974,7 @@ int_chr(int argc, VALUE *argv, VALUE num)
#endif
if (i < 0 || (n = rb_enc_codelen((int)i, enc)) <= 0) goto out_of_range;
str = rb_enc_str_new(0, n, enc);
- rb_enc_mbcput(i, RSTRING_PTR(str), enc);
+ rb_enc_mbcput((int)i, RSTRING_PTR(str), enc);
return str;
}