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 9af2b142fe..f86ff1a12a 100644
--- a/numeric.c
+++ b/numeric.c
@@ -1954,7 +1954,7 @@ int_chr(int argc, VALUE *argv, VALUE num)
out_of_range:
rb_raise(rb_eRangeError, "%"PRIdVALUE " out of char range", i);
}
- c = i;
+ c = (char)i;
if (i < 0x80) {
return rb_usascii_str_new(&c, 1);
}