From: usa@... Date: 2014-09-10T03:26:38+00:00 Subject: [ruby-core:64917] [ruby-trunk - Bug #10144] [PATCH] time_timespec: fix tv_nsec overflow on float conversion Issue #10144 has been updated by Usaku NAKAMURA. Backport changed from 2.0.0: REQUIRED, 2.1: DONE to 2.0.0: DONE, 2.1: DONE backported into `ruby_2_0_0` at r47501. ---------------------------------------- Bug #10144: [PATCH] time_timespec: fix tv_nsec overflow on float conversion https://bugs.ruby-lang.org/issues/10144#change-48776 * Author: Eric Wong * Status: Closed * Priority: Normal * Assignee: Eric Wong * Category: core * Target version: current: 2.2.0 * ruby -v: trunk * Backport: 2.0.0: DONE, 2.1: DONE ---------------------------------------- test/ruby/test_float.rb (test_sleep_with_Float) causes tv_nsec to hit 1000000000 exactly. This bug is currently hidden from our test by the platform-dependent native_cond_timeout functions, but a future native_cond_timedwait implementation may prefer relative timeouts to match ConditionVariable#wait semantics more closely. Requesting backport since this may affect 3rd party C extensions. ---Files-------------------------------- tv_nsec-overflow.patch (426 Bytes) -- https://bugs.ruby-lang.org/