Skip to content

Commit

Permalink
Fix SetWriteBarrier call
Browse files Browse the repository at this point in the history
  • Loading branch information
RedBrumbler committed Jan 23, 2024
1 parent 4225b17 commit 38e152d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/utils/typedefs-array.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ struct ArrayW {
array->val->values[idx] = static_cast<T>(v);
// writes on ref types should happen with wbarrier
if constexpr (il2cpp_utils::il2cpp_reference_type<T>) {
il2cpp_functions::GarbageCollector_SetWriteBarrier(array->val->values + idx);
il2cpp_functions::GarbageCollector_SetWriteBarrier(reinterpret_cast<void**>(array->val->values + idx));
}
return array->val->values[idx];
}
Expand Down

0 comments on commit 38e152d

Please sign in to comment.