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");