зеркало из https://github.com/github/ruby.git
* process.c (rb_f_sleep): time() needs time_t.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
383b905f5e
Коммит
d7720b2fc0
|
@ -1,4 +1,6 @@
|
|||
Thu Mar 12 05:14:50 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Thu Mar 12 05:16:07 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* process.c (rb_f_sleep): time() needs time_t.
|
||||
|
||||
* random.c (fill_random_seed): enclosed conditionally used
|
||||
variables.
|
||||
|
|
|
@ -3220,7 +3220,7 @@ rb_f_spawn(int argc, VALUE *argv)
|
|||
static VALUE
|
||||
rb_f_sleep(int argc, VALUE *argv)
|
||||
{
|
||||
int beg, end;
|
||||
time_t beg, end;
|
||||
|
||||
beg = time(0);
|
||||
if (argc == 0) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче