1
0
Fork 0
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:
Nobuyoshi Nakada 2021-03-14 20:18:50 +09:00
parent 8a5a91eead
commit 2a6bfd2246
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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);
}
/*