[前][次][番号順一覧][スレッド一覧]

ruby-changes:56450

From: Yusuke <ko1@a...>
Date: Sun, 14 Jul 2019 14:28:18 +0900 (JST)
Subject: [ruby-changes:56450] Yusuke Endoh: 219643c075 (master): Add a /* fall through */ comment

https://git.ruby-lang.org/ruby.git/commit/?id=219643c075

From 219643c075d9f5641307853cae052383bb289a11 Mon Sep 17 00:00:00 2001
From: Yusuke Endoh <mame@r...>
Date: Sun, 14 Jul 2019 14:27:45 +0900
Subject: Add a /* fall through */ comment


diff --git a/time.c b/time.c
index 3ed694f..8d1bfd3 100644
--- a/time.c
+++ b/time.c
@@ -2087,6 +2087,7 @@ utc_offset_arg(VALUE arg) https://github.com/ruby/ruby/blob/trunk/time.c#L2087
 	    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;
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]