fix arr_bptr==NULL path in compress_grouped

This commit is contained in:
dzaima 2025-05-26 21:00:08 +03:00
parent a7538ee51f
commit 5e68db7bc1

View File

@ -211,7 +211,8 @@ static B compress_grouped(u64* wp, B x, usz wia, usz wsum, u8 xt) { // expected
for (usz i = 0; i < wia; i++) if (bitp_get(wp,i)) { for (usz i = 0; i < wia; i++) if (bitp_get(wp,i)) {
for (usz j = 0; j < csz; j++) HARR_ADDA(rp, Get(x,i*csz+j)); for (usz j = 0; j < csz; j++) HARR_ADDA(rp, Get(x,i*csz+j));
} }
return withFill(HARR_FV(rp), getFillR(x)); r = withFill(HARR_FV(rp), getFillR(x));
goto b_res;
} }
rh = m_harrUv(ria); rh = m_harrUv(ria);
@ -222,6 +223,7 @@ static B compress_grouped(u64* wp, B x, usz wia, usz wsum, u8 xt) { // expected
for (usz i = 0; i < wsum*csz; i++) inc(((B*)rp)[i]); for (usz i = 0; i < wsum*csz; i++) inc(((B*)rp)[i]);
NOGC_E; NOGC_E;
r = withFill(rh.b, getFillR(x)); r = withFill(rh.b, getFillR(x));
b_res:;
a(r)->ia = wsum; // Shape-setting code at end of compress expects this a(r)->ia = wsum; // Shape-setting code at end of compress expects this
} }
} else { // Bits } else { // Bits