diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-07-03 15:03:01 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-07-03 15:03:01 +0900 |
| commit | b071dcd4fb7b5a36343210c595e44b62cee732b8 (patch) | |
| tree | 61926d84573953756966afb58bdc3cbdf5f243f7 /mrbgems/mruby-string-utf8/src/string.c | |
| parent | ff49cf95fca2d1648f05dd636c8f8516c8edc815 (diff) | |
| parent | 43df1d7e3937162dd406dafeab79cd54dea13762 (diff) | |
| download | mruby-b071dcd4fb7b5a36343210c595e44b62cee732b8.tar.gz mruby-b071dcd4fb7b5a36343210c595e44b62cee732b8.zip | |
Merge pull request #2873 from cremno/fix-coverity-missing-break-in-switch
Coverity: fix missing break in switch defects
Diffstat (limited to 'mrbgems/mruby-string-utf8/src/string.c')
| -rw-r--r-- | mrbgems/mruby-string-utf8/src/string.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |
