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

ruby-changes:55219

From: svn <ko1@a...>
Date: Wed, 3 Apr 2019 19:56:43 +0900 (JST)
Subject: [ruby-changes:55219] svn:r67426 (trunk): * expand tabs.

svn	2019-04-03 19:56:37 +0900 (Wed, 03 Apr 2019)

  New Revision: 67426

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67426

  Log:
    * expand tabs.

  Modified files:
    trunk/ext/date/date_parse.c
Index: ext/date/date_parse.c
===================================================================
--- ext/date/date_parse.c	(revision 67425)
+++ ext/date/date_parse.c	(revision 67426)
@@ -1862,26 +1862,26 @@ parse_ddd_cb(VALUE m, VALUE hash) https://github.com/ruby/ruby/blob/trunk/ext/date/date_parse.c#L1862
 	set_hash("zone", s5);
 
 	if (*cs5 == '[') {
-	    const char *s1, *s2;
+            const char *s1, *s2;
 	    VALUE zone;
 
             l5 -= 2;
-	    s1 = cs5 + 1;
-	    s2 = memchr(s1, ':', l5);
+            s1 = cs5 + 1;
+            s2 = memchr(s1, ':', l5);
 	    if (s2) {
 		s2++;
                 zone = rb_str_subseq(s5, s2 - cs5, l5 - (s2 - s1));
                 s5 = rb_str_subseq(s5, 1, s2 - s1);
 	    }
-	    else {
-		zone = rb_str_subseq(s5, 1, l5);
+            else {
+                zone = rb_str_subseq(s5, 1, l5);
                 if (isdigit((unsigned char)*s1))
                     s5 = rb_str_append(rb_str_new_cstr("+"), zone);
                 else
                     s5 = zone;
             }
 	    set_hash("zone", zone);
-	    set_hash("offset", date_zone_to_diff(s5));
+            set_hash("offset", date_zone_to_diff(s5));
 	}
 	RB_GC_GUARD(s5);
     }

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

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