Skip to content

Commit

Permalink
Update include/jlcxx/array.hpp
Browse files Browse the repository at this point in the history
Co-authored-by: Jameson Nash <vtjnash@gmail.com>
  • Loading branch information
benlorenz and vtjnash committed Oct 30, 2023
1 parent 92af986 commit 1df29aa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/jlcxx/array.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,11 @@ class Array
jl_value_t** data = jlcxx_array_data<jl_value_t*>(m_array);
jl_value_t* jval = box<ValueT>(val);
data[pos] = jval;
#if (JULIA_VERSION_MAJOR * 100 + JULIA_VERSION_MINOR) >= 111
jl_gc_wb(jl_array_owner(m_array), jval);
#else
jl_gc_wb(m_array, jval);
#endif
JL_GC_POP();
}

Expand Down

0 comments on commit 1df29aa

Please sign in to comment.