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 | 8c90838f7cfb69bb7c203d6758739f9e890faba4 (patch) | |
tree | 59b71ba81394735d0224d74e82a45a8f0609fb47 /ext/date | |
parent | dcd4914b3a68f410a43ed9c2bc6d042e6398bb89 (diff) | |
download | ruby-8c90838f7cfb69bb7c203d6758739f9e890faba4.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; } |