From ce4ea956d24eab5089a143bba38126f2b11b55b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= Date: Fri, 31 Jan 2020 15:53:03 +0900 Subject: [PATCH] function pointers are not void* The same as 8427fca49bd85205f5a8766292dd893f003c0e48. --- coroutine/ucontext/Context.c | 2 +- mjit.c | 2 +- 2 files changed, 2 insertions(+), 2 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); diff --git a/mjit.c b/mjit.c index 5d1a182b0b..697dd23954 100644 --- a/mjit.c +++ b/mjit.c @@ -464,7 +464,7 @@ rb_mjit_recompile_iseq(const rb_iseq_t *iseq) CRITICAL_SECTION_START(3, "in rb_mjit_recompile_iseq"); remove_from_list(iseq->body->jit_unit, &active_units); - iseq->body->jit_func = (void *)NOT_ADDED_JIT_ISEQ_FUNC; + iseq->body->jit_func = (mjit_func_t)NOT_ADDED_JIT_ISEQ_FUNC; add_to_list(iseq->body->jit_unit, &stale_units); CRITICAL_SECTION_FINISH(3, "in rb_mjit_recompile_iseq");