fix unshare with heuristic randomization

This commit is contained in:
dzaima 2025-06-01 05:12:05 +03:00
parent b768332c03
commit 4296c42534

View File

@ -276,7 +276,7 @@ static B unshare(B x) { // doesn't consume
Arr* r = arr_shCopy(m_fillarr0p(xia), x);
fillarr_setFill(r, unshare(getFillR(x)));
B* rp = fillarrv_ptr(r);
B* xp = arr_bptr(x);
B* xp = arr_bptrG(x);
for (usz i = 0; i < xia; i++) rp[i] = unshare(xp[i]);
return unshareShape(r);
}