1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

function pointers are not void*

The same as 8427fca49b.
This commit is contained in:
卜部昌平 2020-01-31 15:53:03 +09:00
parent b223a78a71
commit ce4ea956d2
Notes: git 2020-02-06 11:47:22 +09:00
2 changed files with 2 additions and 2 deletions

View file

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

2
mjit.c
View file

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