Skip to content

Commit e5a82fb

Browse files
authored
Fix gcext test (#47802)
1 parent 1a55d60 commit e5a82fb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/gcext/gcext.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -612,8 +612,7 @@ int main()
612612
jl_gc_set_cb_root_scanner(abort_with_error, 1);
613613
jl_gc_set_cb_root_scanner(abort_with_error, 0);
614614
// Create module to store types in.
615-
module = jl_new_module(jl_symbol("TestGCExt"));
616-
module->parent = jl_main_module;
615+
module = jl_new_module(jl_symbol("TestGCExt"), jl_main_module);
617616
jl_set_const(jl_main_module, jl_symbol("TestGCExt"), (jl_value_t *)module);
618617
// Define Julia types for our stack implementation.
619618
datatype_stack = jl_new_foreign_type(

0 commit comments

Comments
 (0)