summaryrefslogtreecommitdiff
path: root/test/ruby/test_array.rb
diff options
context:
space:
mode:
authorJean Boussier <jean.boussier@gmail.com>2024-12-04 19:55:35 +0100
committerJean Boussier <jean.boussier@gmail.com>2024-12-04 22:46:02 +0100
commitbf225feb265af6d796721d3a7e2b6800d160d42d (patch)
treeb1bb3457ea7d70c9dd0c101d54bf3f4add33bf1a /test/ruby/test_array.rb
parent1c4dbb133e8de0e2f194e659e8d3d47171e32643 (diff)
Fix an off by one in `rb_ary_resize`
When setting len to X we only need to grow the array if len is bigger than capa. If they're equal we don't need to increase capacity.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12262
Diffstat (limited to 'test/ruby/test_array.rb')
0 files changed, 0 insertions, 0 deletions