fix another weird case of 𝕨∾𝕩
This commit is contained in:
parent
24fea51bdd
commit
acbfcd7302
@ -933,10 +933,10 @@ B join_c2(B t, B w, B x) {
|
|||||||
ur rnk0 = RNK(r);
|
ur rnk0 = RNK(r);
|
||||||
ShArr* sh0 = shObj(r);
|
ShArr* sh0 = shObj(r);
|
||||||
usz* wsh;
|
usz* wsh;
|
||||||
if (wr==1 && usedW) {
|
if (wr<=1) {
|
||||||
wsh = &wia0;
|
wsh = &wia0;
|
||||||
} else {
|
} else {
|
||||||
wsh = SH(w); // when wr>1, shape object won't be disturbed by arr_join_inline
|
wsh = usedW? sh0->a : SH(w); // if usedW, arr_join_inline guarantees returning an array with shape of w if wr>1; otherwise, can just use w
|
||||||
}
|
}
|
||||||
usz* xsh = SH(x);
|
usz* xsh = SH(x);
|
||||||
SRNK(r, 0); // otherwise shape allocation failing may break things; leaves shape owned only here
|
SRNK(r, 0); // otherwise shape allocation failing may break things; leaves shape owned only here
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user