diff options
author | Yukihiro Matsumoto <matz@ruby-lang.org> | 1997-12-04 14:29:59 +0900 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2019-08-17 22:09:33 +0900 |
commit | fb0fe24512d1796f794306768ddac37566e9a209 (patch) | |
tree | 441fc10b147be3cc7db217ab1d64ec1ff4dbf7ff /time.c | |
parent | ab261638f5b87384fa2bda5678cb38ae9a505209 (diff) |
version 1.0-971204v1_0_971204
https://cache.ruby-lang.org/pub/ruby/1.0/ruby-1.0-971204.tar.gz
Thu Dec 4 14:29:59 1997 Yukihiro Matsumoto <matz@netlab.co.jp>
* version 1.0-971204
Mon Dec 1 15:24:41 1997 Yukihiro Matsumoto <matz@netlab.co.jp>
* compar.c (cmp_between): wrong comparison made.
Wed Nov 26 18:18:05 1997 Yukihiro Matsumoto <matz@netlab.co.jp>
* numeric.c (fix2str): enlarge buffer to prevent overflow on some
machines.
Diffstat (limited to 'time.c')
-rw-r--r-- | time.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -445,10 +445,10 @@ time_coerce(time1, time2) double d = RFLOAT(time2)->value; unsigned int i = (unsigned int) d; - return time_new_internal(i, (int)(d - (double)i)*1e6); + return assoc_new(time_new(i, (int)((d - (double)i)*1e6)),time1); } - return time_new(CLASS_OF(time1), NUM2INT(time2), 0); + return assoc_new(time_new(NUM2INT(time2), 0), time1); } static VALUE |