Merge pull request #12546 from neikeq/do-people-read-these
Use mono_gc_wbarrier_set_arrayref for Array marshalling
This commit is contained in:
commit
cb3ef3c7e6
1 changed files with 1 additions and 1 deletions
|
@ -600,7 +600,7 @@ MonoArray *Array_to_mono_array(const Array &p_array) {
|
||||||
|
|
||||||
for (int i = 0; i < p_array.size(); i++) {
|
for (int i = 0; i < p_array.size(); i++) {
|
||||||
MonoObject *boxed = variant_to_mono_object(p_array[i]);
|
MonoObject *boxed = variant_to_mono_object(p_array[i]);
|
||||||
mono_array_set(ret, MonoObject *, i, boxed);
|
mono_array_setref(ret, i, boxed);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in a new issue