Prefer RB_NUM2LONG for string length. (#7379)
This commit is contained in:
parent
d3ee9e590c
commit
d0031db9b3
Notes:
git
2023-02-25 10:04:31 +00:00
Merged-By: ioquatix <samuel@codeotaku.com>
@ -423,7 +423,7 @@ rb_io_buffer_type_for(VALUE klass, VALUE string)
|
|||||||
VALUE
|
VALUE
|
||||||
rb_io_buffer_type_string(VALUE klass, VALUE length)
|
rb_io_buffer_type_string(VALUE klass, VALUE length)
|
||||||
{
|
{
|
||||||
VALUE string = rb_str_new(NULL, NUM2SIZET(length));
|
VALUE string = rb_str_new(NULL, RB_NUM2LONG(length));
|
||||||
|
|
||||||
struct io_buffer_for_yield_instance_arguments arguments = {
|
struct io_buffer_for_yield_instance_arguments arguments = {
|
||||||
.klass = klass,
|
.klass = klass,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user