[前][次][番号順一覧][スレッド一覧]

ruby-changes:72843

From: Nobuyoshi <ko1@a...>
Date: Sat, 6 Aug 2022 23:57:14 +0900 (JST)
Subject: [ruby-changes:72843] f245b425af (master): Fix the sizes comparison

https://git.ruby-lang.org/ruby.git/commit/?id=f245b425af

From f245b425af2e560a85edac85ad4426a04b01e4de Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sat, 6 Aug 2022 23:53:13 +0900
Subject: Fix the sizes comparison

`proc_syswait` will be called with a `VALUE` argument.
---
 process.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/process.c b/process.c
index fb31418e00..0ba555562c 100644
--- a/process.c
+++ b/process.c
@@ -3773,7 +3773,7 @@ rb_exec_atfork(void* arg, char *errmsg, size_t errmsg_buflen) https://github.com/ruby/ruby/blob/trunk/process.c#L3773
     return rb_exec_async_signal_safe(arg, errmsg, errmsg_buflen); /* hopefully async-signal-safe */
 }
 
-#if SIZEOF_INT == SIZEOF_LONG
+#if SIZEOF_INT == SIZEOF_VALUE
 #define proc_syswait (VALUE (*)(VALUE))rb_syswait
 #else
 static VALUE
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]