diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-03-25 10:13:03 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-03-25 10:13:03 +0000 |
commit | b6c9957058c02541a38e9c5057bd5cc4f3823172 (patch) | |
tree | ab61130c08bc30fcae5f0f6441a0f9fbb0d9e465 /test/ruby/test_range.rb | |
parent | f6001be537623a52513919ee1890b2bbccc119f0 (diff) | |
download | ruby-b6c9957058c02541a38e9c5057bd5cc4f3823172.tar.gz |
* array.c (ary_new): fix size check. [ruby-dev:34123]
* array.c (rb_ary_take, rb_ary_drop): check negative size and use
NUM2LONG instead of FIX2LONG. [ruby-dev:34123]
* enum.c (enum_take, enum_drop): check negative size.
* test/ruby/test_array.rb: add tests for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_range.rb')
0 files changed, 0 insertions, 0 deletions