diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-03-18 15:33:37 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-03-18 15:33:37 +0000 |
commit | f8b4df93d22930ad5ca4f73ea7740ea253d4859b (patch) | |
tree | d83975e699f297dbc64f1114dd5aecfa139f5107 /ChangeLog | |
parent | 091f98cf8c34c4288d0a3afcddd566ab652a30fb (diff) |
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.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@62827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -1,3 +1,18 @@ +Mon Mar 19 00:32:31 2018 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * 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. + +Mon Mar 19 00:32:31 2018 Marc-Andre Lafortune <ruby-core@marc-andre.ca> + + Fix size on Enumerable#cycle when the size is 0 [Bug #14082]. + + Patch by Kenichi Kamiya + Mon Mar 19 00:28:28 2018 Nobuyoshi Nakada <nobu@ruby-lang.org> * parse.y (parser_here_document): an escaped newline is not an |