[ruby-cvs:69963] usa:r62827 (ruby_2_3): merge revision(s) 60666, 60667, 60668: [Backport #14082]

usa at ruby-lang.org usa at ruby-lang.org
Mon Mar 19 00:33:37 JST 2018


usa	2018-03-19 00:33:37 +0900 (Mon, 19 Mar 2018)

  New Revision: 62827

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

  Log:
    merge revision(s) 60666,60667,60668: [Backport #14082]
    
    Fix size on Enumerable#cycle when the size is 0 [Bug #14082].
    
    Patch by Kenichi Kamiya
    
    test/ruby/test_lazy_enumerator.rb: test for [Bug #14082]
    
    enum.c: check argument first
    
    * enum.c (enum_cycle_size): check an argument before the size of
      the receiver, if it is given.

  Modified directories:
    branches/ruby_2_3/
  Modified files:
    branches/ruby_2_3/ChangeLog
    branches/ruby_2_3/enum.c
    branches/ruby_2_3/test/ruby/test_enumerator.rb
    branches/ruby_2_3/test/ruby/test_lazy_enumerator.rb
    branches/ruby_2_3/version.h


More information about the ruby-cvs mailing list