summaryrefslogtreecommitdiff
path: root/ractor.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2023-08-08 00:32:45 +0900
committerNobuyoshi Nakada <[email protected]>2024-03-17 15:57:19 +0900
commit28a2105a554d875cc5c6fc2b5ac20e0e6c04966e (patch)
treea17963bfe593a18149bd9f17a9b833ee6fb40f49 /ractor.c
parenta91800c4a05cc573a0ed1607210fc360a5c16b57 (diff)
Prefer `enum ruby_tag_type` over `int`
Diffstat (limited to 'ractor.c')
-rw-r--r--ractor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ractor.c b/ractor.c
index fbdca947af..4eee3cc731 100644
--- a/ractor.c
+++ b/ractor.c
@@ -590,7 +590,7 @@ ractor_check_ints(rb_execution_context_t *ec, rb_ractor_t *cr, ractor_sleep_clea
RACTOR_UNLOCK(cr);
{
if (cf_func) {
- int state;
+ enum ruby_tag_type state;
EC_PUSH_TAG(ec);
if ((state = EC_EXEC_TAG()) == TAG_NONE) {
rb_thread_check_ints();
@@ -1319,7 +1319,7 @@ ractor_try_yield(rb_execution_context_t *ec, rb_ractor_t *cr, struct rb_ractor_q
type = basket_type_will;
}
else {
- int state;
+ enum ruby_tag_type state;
// begin
EC_PUSH_TAG(ec);