diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-04 07:05:26 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-04 07:05:26 +0000 |
| commit | 6993560ce56843742e84ec1f61a8794a3c1eb66b (patch) | |
| tree | e5da6f2b0cc85bb5ca637df0220972eb7410b74b /time.c | |
| parent | 1f8b6187955332e212b0c2c073c7965d44c389e0 (diff) | |
| download | ruby-6993560ce56843742e84ec1f61a8794a3c1eb66b.tar.gz ruby-6993560ce56843742e84ec1f61a8794a3c1eb66b.tar.xz ruby-6993560ce56843742e84ec1f61a8794a3c1eb66b.zip | |
* time.c (obj2nsec): fix string argument.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
| -rw-r--r-- | time.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -356,7 +356,7 @@ obj2nsec(VALUE obj, long *nsec) if (TYPE(obj) == T_STRING) { obj = rb_str_to_inum(obj, 10, Qfalse); *nsec = 0; - return NUM2LONG(obj) * 1000; + return NUM2LONG(obj); } ts = time_timespec(obj, 1); |
