summaryrefslogtreecommitdiff
path: root/time.c
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 /time.c
parent34f182f7b28b4b4f8c69d3563cd77737867814c1 (diff)
* 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
Diffstat (limited to 'time.c')
-rw-r--r--time.c2
1 files changed, 1 insertions, 1 deletions
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