We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c452c3 commit f51b1eaCopy full SHA for f51b1ea
src/builtins.c
@@ -1773,6 +1773,7 @@ JL_CALLABLE(jl_f_memoryrefnew)
1773
if(jl_is_genericmemory(args[0])) {
1774
jl_genericmemory_t *m = (jl_genericmemory_t*)args[0];
1775
jl_value_t *typ = jl_apply_type((jl_value_t*)jl_genericmemoryref_type, jl_svec_data(((jl_datatype_t*)jl_typetagof(m))->parameters), 3);
1776
+ JL_GC_PROMISE_ROOTED(typ); // it is a concrete type
1777
if (i >= m->length)
1778
jl_bounds_error((jl_value_t*)m, args[1]);
1779
const jl_datatype_layout_t *layout = ((jl_datatype_t*)jl_typetagof(m))->layout;
0 commit comments