ruby-changes:71399
From: Nobuyoshi <ko1@a...>
Date: Sun, 13 Mar 2022 21:11:08 +0900 (JST)
Subject: [ruby-changes:71399] 2af8b04eca (master): Fix conversion macro for `size_t`
https://git.ruby-lang.org/ruby.git/commit/?id=2af8b04eca From 2af8b04eca68a924fd2875e9c5e51240150d02a6 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sun, 13 Mar 2022 21:10:33 +0900 Subject: Fix conversion macro for `size_t` --- cont.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cont.c b/cont.c index e78582a99a..bf9f4415db 100644 --- a/cont.c +++ b/cont.c @@ -2858,7 +2858,7 @@ rb_fiber_pool_initialize(int argc, VALUE* argv, VALUE self) https://github.com/ruby/ruby/blob/trunk/cont.c#L2858 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) https://github.com/ruby/ruby/blob/trunk/cont.c#L2866 } 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); -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/