1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Add a /* fall through */ comment

This commit is contained in:
Yusuke Endoh 2019-07-14 14:27:45 +09:00
parent 34b3ef29b6
commit 219643c075

1
time.c
View file

@ -2087,6 +2087,7 @@ utc_offset_arg(VALUE arg)
if (s[6] != ':') goto invalid_utc_offset;
if (!ISDIGIT(s[7]) || !ISDIGIT(s[8])) goto invalid_utc_offset;
n += (s[7] * 10 + s[8] - '0' * 11);
/* fall through */
case 6:
if (s[0] != '+' && s[0] != '-') goto invalid_utc_offset;
if (!ISDIGIT(s[1]) || !ISDIGIT(s[2])) goto invalid_utc_offset;