[ruby-cvs:54344] normal:r47196 (trunk): time.c (time_timespec): fix tv_nsec overflow

normal at ruby-lang.org normal at ruby-lang.org
Sat Aug 16 10:27:20 JST 2014


normal	2014-08-16 10:27:19 +0900 (Sat, 16 Aug 2014)

  New Revision: 47196

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47196

  Log:
    time.c (time_timespec): fix tv_nsec overflow
    
    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.
    [Bug #10144]

  Modified files:
    trunk/ChangeLog
    trunk/time.c


More information about the ruby-cvs mailing list