fix (2⋆25)/(2⋆10)⥊10

This commit is contained in:
dzaima 2024-04-03 19:47:22 +03:00
parent 863da7083f
commit 61e068086e
2 changed files with 5 additions and 1 deletions

View File

@ -743,7 +743,8 @@ B slash_c2(B t, B w, B x) {
goto decX_ret;
}
if (xlen == 0) return x;
usz s = xlen * wv;
usz s = xlen;
if (mulOn(s, wv)) thrOOM();
if (xl>6 || (xl<3 && xl!=0) || TI(x,elType)==el_B) {
B xf = getFillR(x);
if (xr!=1) {

3
test/cases/usz32.bqn Normal file
View File

@ -0,0 +1,3 @@
!"Out of memory" % a(220) 1e9 {𝕊: a}˘ a
!"⥊: 𝕨 too large" % a(220) 1e9 a˘ a
!"Out of memory" % (225)/(210)10