summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/string.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/string.c b/src/string.c
index 20f371aa2..23cd76747 100644
--- a/src/string.c
+++ b/src/string.c
@@ -753,6 +753,7 @@ mrb_str_aref(mrb_state *mrb, mrb_value str, mrb_value indx)
switch (mrb_type(indx)) {
case MRB_TT_FLOAT:
indx = mrb_flo_to_fixnum(mrb, indx);
+ /* fall through */
case MRB_TT_FIXNUM:
idx = mrb_fixnum(indx);