Fix an off by one in `rb_ary_resize`
commitbf225feb265af6d796721d3a7e2b6800d160d42d
authorJean Boussier <[email protected]>
Wed, 4 Dec 2024 18:55:35 +0000 (4 19:55 +0100)
committerJean Boussier <[email protected]>
Wed, 4 Dec 2024 21:46:02 +0000 (4 22:46 +0100)
treeb1bb3457ea7d70c9dd0c101d54bf3f4add33bf1a
parent1c4dbb133e8de0e2f194e659e8d3d47171e32643
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.
array.c