summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-11-26 00:55:38 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-11-26 01:03:57 +0900
commite1a7fa925e5e7f74ce1d8dcd290e40ecb764b426 (patch)
tree03bcd9e2b554ae1a9755eeed1a47f9152eba863a /src
parent0133d9ac70fd8d3ebe873e29c12cabfd3ff3f1a1 (diff)
downloadmruby-e1a7fa925e5e7f74ce1d8dcd290e40ecb764b426.tar.gz
mruby-e1a7fa925e5e7f74ce1d8dcd290e40ecb764b426.zip
add "fall through" comment
Diffstat (limited to 'src')
-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);