ext/numo/narray/gen/tmpl_bit/unary.c in numo-narray-0.9.1.8 vs ext/numo/narray/gen/tmpl_bit/unary.c in numo-narray-0.9.1.9

- old
+ new

@@ -18,9 +18,13 @@ LOAD_BIT_STEP(a1, p1, s1, idx1, x); y = m_<%=name%>(x); STORE_BIT_STEP(a3, p3, s3, idx3, y); } } else { + a1 += p1/NB; + p1 %= NB; + a3 += p3/NB; + p3 %= NB; o1 = p1-p3; l1 = NB+o1; r1 = NB-o1; if (p3>0 || n<NB) { len = NB - p3;