mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Properly convert time_t [Bug #17645]
This commit is contained in:
parent
8a5a91eead
commit
2a6bfd2246
1 changed files with 1 additions and 1 deletions
|
@ -565,7 +565,7 @@ rb_mutex_sleep(VALUE self, VALUE timeout)
|
|||
|
||||
RUBY_VM_CHECK_INTS_BLOCKING(GET_EC());
|
||||
time_t end = time(0) - beg;
|
||||
return INT2FIX(end);
|
||||
return TIMET2NUM(end);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue