ruby-changes:52398
From: nobu <ko1@a...>
Date: Sat, 1 Sep 2018 15:14:13 +0900 (JST)
Subject: [ruby-changes:52398] nobu:r64607 (trunk): 10**3 is always 1000
nobu 2018-09-01 15:14:07 +0900 (Sat, 01 Sep 2018) New Revision: 64607 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64607 Log: 10**3 is always 1000 Modified files: trunk/ext/date/date_strptime.c Index: ext/date/date_strptime.c =================================================================== --- ext/date/date_strptime.c (revision 64606) +++ ext/date/date_strptime.c (revision 64607) @@ -426,9 +426,7 @@ date__strptime_internal(const char *str, https://github.com/ruby/ruby/blob/trunk/ext/date/date_strptime.c#L426 if (sign == -1) n = f_negate(n); set_hash("seconds", - rb_rational_new2(n, - f_expt(INT2FIX(10), - INT2FIX(3)))); + rb_rational_new2(n, INT2FIX(1000))); goto matched; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/