summaryrefslogtreecommitdiff
path: root/include/ruby/ruby.h
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2021-05-04 13:37:02 +0000
committerPeter Zhu <peter@peterzhu.ca>2021-05-04 11:46:23 -0400
commit3ca291c9ae1b6de09cce76e17aa3f08e92e1a2bf (patch)
tree7bb2c625a07cd9b87a04c52b174626b7fcc9de02 /include/ruby/ruby.h
parentd09988502ed75cae65b787865465361b675cf1ee (diff)
Correctly update array capacity after realloc
Reallocating to a smaller size in the transient heap may result in no change in the actual capacity but the capacity of the array is still updated to the smaller value. This commit changes `ary_heap_realloc` to return the new capacity which can be used by the caller to correctly update the capacity.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4448
Diffstat (limited to 'include/ruby/ruby.h')
0 files changed, 0 insertions, 0 deletions