summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-29 18:59:18 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-29 18:59:18 +0000
commit3543491916235f515f0d7c283b57263177d6b817 (patch)
tree5243a8fec4493e54426344df060cc8492802d03f
parent34f182f7b28b4b4f8c69d3563cd77737867814c1 (diff)
downloadruby-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--ChangeLog4
-rw-r--r--time.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 73e02abd48..36100915d4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/time.c b/time.c
index 4bfb2df955..8e055b837d 100644
--- a/time.c
+++ b/time.c
@@ -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