diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-01-01 15:41:00 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-01-01 17:02:04 +0900 |
commit | 069cca6f7459da5cc502d0c51f60a9813c611b31 (patch) | |
tree | e33986c53af62142b310b187fdf50abea2aa5203 /cont.c | |
parent | 77ee47188efc64fe8b508494e9b11e8ed481d33c (diff) |
Negative RBOOL usage
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5385
Diffstat (limited to 'cont.c')
-rw-r--r-- | cont.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2483,7 +2483,7 @@ rb_fiber_reset_root_local_storage(rb_thread_t *th) VALUE rb_fiber_alive_p(VALUE fiber_value) { - return FIBER_TERMINATED_P(fiber_ptr(fiber_value)) ? Qfalse : Qtrue; + return RBOOL(!FIBER_TERMINATED_P(fiber_ptr(fiber_value))); } /* |