From 8c90838f7cfb69bb7c203d6758739f9e890faba4 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 1 Sep 2018 06:14:07 +0000 Subject: [PATCH] 10**3 is always 1000 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/date/date_strptime.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ext/date/date_strptime.c b/ext/date/date_strptime.c index 00e03e94ee..877baea435 100644 --- a/ext/date/date_strptime.c +++ b/ext/date/date_strptime.c @@ -426,9 +426,7 @@ date__strptime_internal(const char *str, size_t slen, 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; }