Skip to content

Commit 12ca817

Browse files
committed
Fix WebAssembly build
1 parent 465a565 commit 12ca817

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: gc.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -2325,16 +2325,16 @@ rb_mark_locations(void *begin, void *end)
23252325
rb_stack_range_tmp[1] = end;
23262326
}
23272327

2328-
# if defined(__EMSCRIPTEN__)
2329-
23302328
void
23312329
rb_gc_save_machine_context(void)
23322330
{
23332331
// no-op
23342332
}
23352333

2334+
# if defined(__EMSCRIPTEN__)
2335+
23362336
static void
2337-
mark_current_machine_context(rb_execution_context_t *ec)
2337+
mark_current_machine_context(const rb_execution_context_t *ec)
23382338
{
23392339
emscripten_scan_stack(rb_mark_locations);
23402340
each_location_ptr(rb_stack_range_tmp[0], rb_stack_range_tmp[1], gc_mark_maybe_each_location, NULL);
@@ -2345,7 +2345,7 @@ mark_current_machine_context(rb_execution_context_t *ec)
23452345
# else // use Asyncify version
23462346

23472347
static void
2348-
mark_current_machine_context(rb_execution_context_t *ec)
2348+
mark_current_machine_context(const rb_execution_context_t *ec)
23492349
{
23502350
VALUE *stack_start, *stack_end;
23512351
SET_STACK_END;

0 commit comments

Comments
 (0)