summaryrefslogtreecommitdiff
path: root/coroutine
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-01-31 15:53:03 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-02-06 11:46:51 +0900
commitce4ea956d24eab5089a143bba38126f2b11b55b6 (patch)
tree3754a8344a7d9c66095c0b6dc34651112274cd9a /coroutine
parentb223a78a71b9f000315d70987d600661420f9475 (diff)
function pointers are not void*
The same as 8427fca49bd85205f5a8766292dd893f003c0e48.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2885
Diffstat (limited to 'coroutine')
-rw-r--r--coroutine/ucontext/Context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coroutine/ucontext/Context.c b/coroutine/ucontext/Context.c
index 2dc3f478e8..9ba76ee628 100644
--- a/coroutine/ucontext/Context.c
+++ b/coroutine/ucontext/Context.c
@@ -15,7 +15,7 @@
void coroutine_trampoline(void * _start, void * _context)
{
- coroutine_start start = _start;
+ coroutine_start start = (coroutine_start)_start;
struct coroutine_context * context = _context;
start(context->from, context);