atom⊸«⎉k can only legally do k==1
noticed by test/cells.bqn
This commit is contained in:
parent
d8ec8a3a70
commit
107f5a7ee5
@ -762,13 +762,10 @@ NOINLINE B for_cells_SA(B f, B w, B x, ur xcr, ur xr, u32 chr) { // w⊸F⎉xcr
|
|||||||
return pick_cells(WRAP(o2i64(w), l, thrF("𝕨⊑𝕩: Indexing out-of-bounds (𝕨≡%R, %s≡≠𝕩)", w, l)), x, xr, cam, xk);
|
return pick_cells(WRAP(o2i64(w), l, thrF("𝕨⊑𝕩: Indexing out-of-bounds (𝕨≡%R, %s≡≠𝕩)", w, l)), x, xr, cam, xk);
|
||||||
} break;
|
} break;
|
||||||
case n_shifta: case n_shiftb:
|
case n_shifta: case n_shiftb:
|
||||||
|
if (xcr!=1) break;
|
||||||
if (isAtm(w)) {
|
if (isAtm(w)) {
|
||||||
shift_atm:;
|
shift_atm:;
|
||||||
if (IA(x)==0) return x;
|
if (IA(x)==0) return x;
|
||||||
if (xcr!=1) {
|
|
||||||
if (xcr==0) break;
|
|
||||||
if (!(xsh[xk]==1 || shProd(xsh, xk+1, xr)==1)) break;
|
|
||||||
}
|
|
||||||
return shift_cells(w, x, cam, xsh[xk], el_or(TI(x,elType), selfElType(w)), rtid);
|
return shift_cells(w, x, cam, xsh[xk], el_or(TI(x,elType), selfElType(w)), rtid);
|
||||||
}
|
}
|
||||||
if (RNK(w)==0) {
|
if (RNK(w)==0) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user