ruby-changes:51637
From: naruse <ko1@a...>
Date: Wed, 4 Jul 2018 19:59:41 +0900 (JST)
Subject: [ruby-changes:51637] naruse:r63849 (trunk): Revert "Optimize Time.utc"
naruse 2018-07-04 19:59:36 +0900 (Wed, 04 Jul 2018) New Revision: 63849 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63849 Log: Revert "Optimize Time.utc" This reverts commit r63848. It breaks tests. Modified files: trunk/time.c Index: time.c =================================================================== --- time.c (revision 63848) +++ time.c (revision 63849) @@ -1095,9 +1095,6 @@ init_leap_second_info(void) https://github.com/ruby/ruby/blob/trunk/time.c#L1095 timew = timegmw_noleapsecond(&vtm); number_of_leap_seconds_known = NUM2INT(w2v(wsub(TIMET2WV(known_leap_seconds_limit), rb_time_unmagnify(timew)))); - if (number_of_leap_seconds_known == 0) { - known_leap_seconds_limit = 0; - } } } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/