Skip to content

Commit ce4ea95

Browse files
committed
function pointers are not void*
The same as 8427fca.
1 parent b223a78 commit ce4ea95

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

coroutine/ucontext/Context.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
void coroutine_trampoline(void * _start, void * _context)
1717
{
18-
coroutine_start start = _start;
18+
coroutine_start start = (coroutine_start)_start;
1919
struct coroutine_context * context = _context;
2020

2121
start(context->from, context);

mjit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ rb_mjit_recompile_iseq(const rb_iseq_t *iseq)
464464

465465
CRITICAL_SECTION_START(3, "in rb_mjit_recompile_iseq");
466466
remove_from_list(iseq->body->jit_unit, &active_units);
467-
iseq->body->jit_func = (void *)NOT_ADDED_JIT_ISEQ_FUNC;
467+
iseq->body->jit_func = (mjit_func_t)NOT_ADDED_JIT_ISEQ_FUNC;
468468
add_to_list(iseq->body->jit_unit, &stale_units);
469469
CRITICAL_SECTION_FINISH(3, "in rb_mjit_recompile_iseq");
470470

0 commit comments

Comments
 (0)