diff options
author | S.H <gamelinks007@gmail.com> | 2021-11-09 17:09:29 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-09 17:09:29 +0900 |
commit | 75aae66c4f3eacd527cea71e0c8e486b630fc0a4 (patch) | |
tree | 8aee73fc1b63d6bdfa4761852fd7da8bcac416e1 /thread.c | |
parent | c1c13c58eebb7441d27536a32d73380d165d6eda (diff) |
Some codes replace to `RBOOL` macro (#5023)
* Some code replace and using RBOOL macro
* Fix indent
* Using RBOOL in syserr_eqq function
Notes
Notes:
Merged-By: nobu <nobu@ruby-lang.org>
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -3326,12 +3326,7 @@ rb_thread_status(VALUE thread) static VALUE rb_thread_alive_p(VALUE thread) { - if (thread_finished(rb_thread_ptr(thread))) { - return Qfalse; - } - else { - return Qtrue; - } + return RBOOL(!thread_finished(rb_thread_ptr(thread))); } /* |