summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorS.H <gamelinks007@gmail.com>2021-11-09 17:09:29 +0900
committerGitHub <noreply@github.com>2021-11-09 17:09:29 +0900
commit75aae66c4f3eacd527cea71e0c8e486b630fc0a4 (patch)
tree8aee73fc1b63d6bdfa4761852fd7da8bcac416e1 /thread.c
parentc1c13c58eebb7441d27536a32d73380d165d6eda (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.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/thread.c b/thread.c
index 251dc1b345..36723c6fc0 100644
--- a/thread.c
+++ b/thread.c
@@ -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)));
}
/*