summaryrefslogtreecommitdiff
path: root/scheduler.c
diff options
context:
space:
mode:
authorS-H-GAMELINKS <gamelinks007@gmail.com>2022-11-15 13:24:08 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-11-16 18:58:33 +0900
commit1f4f6c9832d83e7ebd65ccf4e95cef358b3512c6 (patch)
tree823f1ca5409fdd930b05d974cdb70953b6e7e128 /scheduler.c
parentdc1c4e46758ace2c9e5e822df0d64b16bb564bb4 (diff)
Using UNDEF_P macro
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6721
Diffstat (limited to 'scheduler.c')
-rw-r--r--scheduler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scheduler.c b/scheduler.c
index 611182741c..9f28ae0eb6 100644
--- a/scheduler.c
+++ b/scheduler.c
@@ -231,10 +231,10 @@ rb_fiber_scheduler_close(VALUE scheduler)
// would create an infinite loop.
result = rb_check_funcall(scheduler, id_scheduler_close, 0, NULL);
- if (result != Qundef) return result;
+ if (!UNDEF_P(result)) return result;
result = rb_check_funcall(scheduler, id_close, 0, NULL);
- if (result != Qundef) return result;
+ if (!UNDEF_P(result)) return result;
return Qnil;
}