From: normalperson@... Date: 2014-08-16T01:19:32+00:00 Subject: [ruby-core:64407] [ruby-trunk - Bug #10144] [Open] [PATCH] time_timespec: fix tv_nsec overflow on float conversion Issue #10144 has been reported by Eric Wong. ---------------------------------------- Bug #10144: [PATCH] time_timespec: fix tv_nsec overflow on float conversion https://bugs.ruby-lang.org/issues/10144 * Author: Eric Wong * Status: Open * Priority: Normal * Assignee: Eric Wong * Category: core * Target version: current: 2.2.0 * ruby -v: trunk * Backport: 2.0.0: REQUIRED, 2.1: REQUIRED ---------------------------------------- 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/