Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge revision(s) c5cf4d4e129f64cb69aaf0a829aed068ef1943c4: [Backport#19542] #9829

Merged
merged 1 commit into from
Feb 4, 2024

Conversation

nurse
Copy link
Member

@nurse nurse commented Feb 4, 2024

Improve behavioural consistency of unallocated (zero length)
IO::Buffer. (#9532)

This makes the behaviour of IO::Buffer.new(0) and IO::Buffer.new.slice(0, 0) consistent.

Fixes https://bugs.ruby-lang.org/issues/19542 and https://bugs.ruby-lang.org/issues/18805.

io_buffer.c | 14 ++++++--------
test/ruby/test_io_buffer.rb | 35 +++++++++++++++++++++++++++++++++++
2 files changed, 41 insertions(+), 8 deletions(-)

	Improve behavioural consistency of unallocated (zero length)
	 `IO::Buffer`. (ruby#9532)

	This makes the behaviour of IO::Buffer.new(0) and IO::Buffer.new.slice(0, 0) consistent.

	Fixes https://bugs.ruby-lang.org/issues/19542 and https://bugs.ruby-lang.org/issues/18805.
	---
	 io_buffer.c                 | 14 ++++++--------
	 test/ruby/test_io_buffer.rb | 35 +++++++++++++++++++++++++++++++++++
	 2 files changed, 41 insertions(+), 8 deletions(-)
@nurse nurse added the Backport label Feb 4, 2024
@nurse nurse enabled auto-merge February 4, 2024 13:16
@nurse nurse added this pull request to the merge queue Feb 4, 2024
Merged via the queue into ruby:ruby_3_3 with commit d7dc57a Feb 4, 2024
98 checks passed
@nurse nurse deleted the backport-19542 branch February 4, 2024 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 participant