summaryrefslogtreecommitdiffhomepage
path: root/mrbgems
diff options
context:
space:
mode:
authorcremno <[email protected]>2015-07-02 22:11:21 +0200
committercremno <[email protected]>2015-07-02 22:11:21 +0200
commit6a74b8bf0dd55441b87077f97e90ba29252edc53 (patch)
treeb5160dafb046dd18eeefe7f4a54133a4eaca9120 /mrbgems
parentff49cf95fca2d1648f05dd636c8f8516c8edc815 (diff)
downloadmruby-6a74b8bf0dd55441b87077f97e90ba29252edc53.tar.gz
mruby-6a74b8bf0dd55441b87077f97e90ba29252edc53.zip
add missing fall through comments
Diffstat (limited to 'mrbgems')
-rw-r--r--mrbgems/mruby-compiler/core/parse.y2
-rw-r--r--mrbgems/mruby-string-utf8/src/string.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/mrbgems/mruby-compiler/core/parse.y b/mrbgems/mruby-compiler/core/parse.y
index f6a43d32b..64f0a8821 100644
--- a/mrbgems/mruby-compiler/core/parse.y
+++ b/mrbgems/mruby-compiler/core/parse.y
@@ -4802,6 +4802,7 @@ parser_yylex(parser_state *p)
case ')':
case ']':
p->paren_nest--;
+ /* fall through */
case '}':
COND_LEXPOP();
CMDARG_LEXPOP();
@@ -5133,6 +5134,7 @@ parser_yylex(parser_state *p)
pushback(p, c);
return '$';
}
+ /* fall through */
case '0':
tokadd(p, '$');
}
diff --git a/mrbgems/mruby-string-utf8/src/string.c b/mrbgems/mruby-string-utf8/src/string.c
index e21101df9..25a638ea3 100644
--- a/mrbgems/mruby-string-utf8/src/string.c
+++ b/mrbgems/mruby-string-utf8/src/string.c
@@ -259,6 +259,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);