diff options
| author | Jean Boussier <jean.boussier@gmail.com> | 2024-12-04 19:55:35 +0100 |
|---|---|---|
| committer | Jean Boussier <jean.boussier@gmail.com> | 2024-12-04 22:46:02 +0100 |
| commit | bf225feb265af6d796721d3a7e2b6800d160d42d (patch) | |
| tree | b1bb3457ea7d70c9dd0c101d54bf3f4add33bf1a /test | |
| parent | 1c4dbb133e8de0e2f194e659e8d3d47171e32643 (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')
0 files changed, 0 insertions, 0 deletions
