mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mruby-task: combine variable declaration with initialization
This commit is contained in:
@@ -544,9 +544,7 @@ static mrb_value
|
||||
mrb_f_sleep(mrb_state *mrb, mrb_value self)
|
||||
{
|
||||
mrb_float sec = 0;
|
||||
mrb_int n;
|
||||
|
||||
n = mrb_get_args(mrb, "|f", &sec);
|
||||
mrb_int n = mrb_get_args(mrb, "|f", &sec);
|
||||
|
||||
if (n == 0) {
|
||||
/* No argument - suspend indefinitely */
|
||||
|
||||
Reference in New Issue
Block a user