summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2021-02-11 21:55:31 +1300
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2021-03-30 18:38:42 +1300
commitc05dd7dc85311d1a62204aff5f633e758efae949 (patch)
tree7a05d242895fbe5fc9b4bdeb605449dc614ada49
parent9b9bbaec111c34d15d75750e300d94fb5c30c8b1 (diff)
Prefer `rb_check_funcall`.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4173
-rw-r--r--scheduler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scheduler.c b/scheduler.c
index 3403eb1..055c5d4 100644
--- a/scheduler.c
+++ b/scheduler.c
@@ -113,7 +113,7 @@ rb_fiber_scheduler_make_timeout(struct timeval *timeout)
VALUE
rb_fiber_scheduler_timeout_raise(VALUE scheduler, VALUE timeout)
{
- return rb_funcall(scheduler, id_timeout_raise, 1, timeout);
+ return rb_check_funcall(scheduler, id_timeout_raise, 1, timeout);
}
VALUE