mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix conversion macro for size_t
This commit is contained in:
parent
e081f333fe
commit
2af8b04eca
1 changed files with 2 additions and 2 deletions
4
cont.c
4
cont.c
|
@ -2858,7 +2858,7 @@ rb_fiber_pool_initialize(int argc, VALUE* argv, VALUE self)
|
|||
rb_scan_args(argc, argv, "03", &size, &count, &vm_stack_size);
|
||||
|
||||
if (NIL_P(size)) {
|
||||
size = INT2NUM(th->vm->default_params.fiber_machine_stack_size);
|
||||
size = SIZET2NUM(th->vm->default_params.fiber_machine_stack_size);
|
||||
}
|
||||
|
||||
if (NIL_P(count)) {
|
||||
|
@ -2866,7 +2866,7 @@ rb_fiber_pool_initialize(int argc, VALUE* argv, VALUE self)
|
|||
}
|
||||
|
||||
if (NIL_P(vm_stack_size)) {
|
||||
vm_stack_size = INT2NUM(th->vm->default_params.fiber_vm_stack_size);
|
||||
vm_stack_size = SIZET2NUM(th->vm->default_params.fiber_vm_stack_size);
|
||||
}
|
||||
|
||||
TypedData_Get_Struct(self, struct fiber_pool, &FiberPoolDataType, fiber_pool);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue