diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-03-30 21:57:53 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-03-30 21:57:53 +0000 |
commit | 0da3fc65dbf021ad224d7490c1ea0a42527f53b4 (patch) | |
tree | 62f5e3685bf3bbb5a10d01ee4bb4e5d7e72b3352 /time.c | |
parent | 8fcc8e2d67936f0ce6beddfea76c7937eaf9d656 (diff) | |
download | ruby-0da3fc65dbf021ad224d7490c1ea0a42527f53b4.tar.gz |
* time.c (timew2timespec): fix previous change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
-rw-r--r-- | time.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1634,7 +1634,7 @@ timew2timespec(wideval_t timew) if (timew_out_of_timet_range(timew)) rb_raise(rb_eArgError, "time out of system range"); - split_second(timew, &timew, &subsecx); + split_second(timew, &timew2, &subsecx); ts.tv_sec = WV2TIMET(timew2); ts.tv_nsec = NUM2LONG(mulquo(subsecx, INT2FIX(1000000000), INT2FIX(TIME_SCALE))); return ts; |