summaryrefslogtreecommitdiff
path: root/ractor.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-06-23 03:15:55 +0900
committerGitHub <noreply@github.com>2023-06-23 03:15:55 +0900
commitb934976024ef4e1694ec47158d94bce0f6d003b7 (patch)
treed6b65723139d916891d740e5107f921b4beb861c /ractor.c
parent52f8de4f21b147468567f422ac9551ae5c194164 (diff)
Prefer `0` over `NULL` as function pointers
SunC warns use of `NULL`, pointer to data as function pointers.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/7972 Merged-By: nobu <nobu@ruby-lang.org>
Diffstat (limited to 'ractor.c')
-rw-r--r--ractor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ractor.c b/ractor.c
index 77acf3a97f..d6756699cf 100644
--- a/ractor.c
+++ b/ractor.c
@@ -648,7 +648,7 @@ ractor_sleep_with_cleanup(rb_execution_context_t *ec, rb_ractor_t *cr, enum rb_r
static enum rb_ractor_wakeup_status
ractor_sleep(rb_execution_context_t *ec, rb_ractor_t *cr, enum rb_ractor_wait_status wait_status)
{
- return ractor_sleep_with_cleanup(ec, cr, wait_status, NULL, NULL);
+ return ractor_sleep_with_cleanup(ec, cr, wait_status, 0, NULL);
}
// Ractor.receive