diff --git a/ChangeLog b/ChangeLog index 8c8db1e186..40d4c74c0f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,6 @@ -Thu Mar 12 05:14:50 2009 Nobuyoshi Nakada +Thu Mar 12 05:16:07 2009 Nobuyoshi Nakada + + * process.c (rb_f_sleep): time() needs time_t. * random.c (fill_random_seed): enclosed conditionally used variables. diff --git a/process.c b/process.c index fb18d96001..0903f37f9c 100644 --- a/process.c +++ b/process.c @@ -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) {