diff options
author | Nobuyoshi Nakada <[email protected]> | 2023-08-08 00:32:45 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2024-03-17 15:57:19 +0900 |
commit | 28a2105a554d875cc5c6fc2b5ac20e0e6c04966e (patch) | |
tree | a17963bfe593a18149bd9f17a9b833ee6fb40f49 /ractor.c | |
parent | a91800c4a05cc573a0ed1607210fc360a5c16b57 (diff) |
Prefer `enum ruby_tag_type` over `int`
Diffstat (limited to 'ractor.c')
-rw-r--r-- | ractor.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |