diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-29 18:59:18 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-29 18:59:18 +0000 |
commit | 3543491916235f515f0d7c283b57263177d6b817 (patch) | |
tree | 5243a8fec4493e54426344df060cc8492802d03f | |
parent | 34f182f7b28b4b4f8c69d3563cd77737867814c1 (diff) | |
download | ruby-3543491916235f515f0d7c283b57263177d6b817.tar.gz |
* time.c (rb_time_unmagnify_to_float): should cast.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | time.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Fri Apr 30 03:59:08 2010 NAKAMURA Usaku <usa@ruby-lang.org> + + * time.c (rb_time_unmagnify_to_float): should cast. + Fri Apr 30 03:38:14 2010 NAKAMURA Usaku <usa@ruby-lang.org> * numeric.c (fix_mul): the width of fixnum is same as long's on all @@ -755,7 +755,7 @@ rb_time_unmagnify_to_float(wideval_t w) if (c * b == a) { return DBL2NUM((double)c); } - v = DBL2NUM(FIXWV2WINT(w)); + v = DBL2NUM((double)FIXWV2WINT(w)); return quo(v, DBL2NUM(TIME_SCALE)); } #endif |