fix c32arr-i32arr error checking

This commit is contained in:
dzaima 2021-06-03 20:12:39 +03:00
parent b84e6e549b
commit 2b351cfee6

View File

@ -178,8 +178,7 @@ GC2i(sub, wv-xv, {
dec(w);
return r;
}
if (isArr(x)) {
if (!eqShape(w, x)) thrF("-: Expected equal shape prefix (%H ≡ ≢𝕨, %H ≡ ≢𝕩)", w, x);
if (isArr(x) && eqShape(w, x)) {
u32* wp = c32any_ptr(w); usz wia = a(w)->ia;
if (TI(x).elType==el_i32) {
u32* rp; B r = m_c32arrc(&rp, w);