summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2025-01-16 20:11:26 +0900
committerNobuyoshi Nakada <[email protected]>2025-01-16 22:22:43 +0900
commit5df20ab0b49b55c9cf858879f3e6e30cc3dcd803 (patch)
tree637537b5c753930b017cb831135b679e928ee1bc
parentfe03cc22e6b7e213ff349ce1237fffbf1a9bfbe0 (diff)
Un-constify `mark_current_machine_context` on wasm
As `SET_STACK_END` updates `ec->machine.stack_end`, it cannot be const.
-rw-r--r--gc.c2
1 files changed, 1 insertions, 1 deletions
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;