From 5df20ab0b49b55c9cf858879f3e6e30cc3dcd803 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 16 Jan 2025 20:11:26 +0900 Subject: [PATCH] Un-constify `mark_current_machine_context` on wasm As `SET_STACK_END` updates `ec->machine.stack_end`, it cannot be const. --- gc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gc.c b/gc.c index 7f06af0766..c53cec630a 100644 --- a/gc.c +++ b/gc.c @@ -2485,7 +2485,7 @@ mark_current_machine_context(const rb_execution_context_t *ec) # else // use Asyncify version static void -mark_current_machine_context(const rb_execution_context_t *ec) +mark_current_machine_context(rb_execution_context_t *ec) { VALUE *stack_start, *stack_end; SET_STACK_END;