diff options
author | rhe <rhe@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-12-20 06:53:44 +0000 |
---|---|---|
committer | rhe <rhe@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-12-20 06:53:44 +0000 |
commit | 3d2a71470341f76fc3bf5c3fc930e9d1b5867b0e (patch) | |
tree | 4be181674e47eebed87689e62cb724197cd8afbd /test/ruby/test_float.rb | |
parent | 0b04fe3596c106ed87c6ca148948f2ed0cbb4df9 (diff) | |
download | ruby-3d2a71470341f76fc3bf5c3fc930e9d1b5867b0e.tar.gz |
array.c: do not resize to less than 0
Shrinking the Array from the block invoked by Array#select! or
Array#reject! causes the Array to be a negative number size. Ensure that
the resulting Array won't be smaller than 0.
[ruby-core:78739] [Bug #13053]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_float.rb')
0 files changed, 0 insertions, 0 deletions