diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-09-01 06:14:07 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-09-01 06:14:07 +0000 |
commit | 225951a9ceab550412fbd75ac9296ff769be3348 (patch) | |
tree | 59b71ba81394735d0224d74e82a45a8f0609fb47 /ext/date | |
parent | 38a62819ada8d3998629cc7f5145c5e977d8246f (diff) | |
download | ruby-225951a9ceab550412fbd75ac9296ff769be3348.tar.gz |
10**3 is always 1000
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/date')
-rw-r--r-- | ext/date/date_strptime.c | 4 |
1 files changed, 1 insertions, 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; } |