relax take/drop overflow checking

This commit is contained in:
dzaima 2024-01-19 18:03:54 +02:00
parent 0f691138c9
commit ffffdb5895

View File

@ -639,12 +639,12 @@ B take_c2(B t, B w, B x) {
TAKEDROP_INIT(1);
if (n>=0) {
CHECK_IA(n, 8);
if (n != (usz)n) thrOOM();
a = take_impl(n, x);
if (xr==1) return taga(arr_shVec(a));
} else {
n = -n;
CHECK_IA(n, 8);
if (n != (usz)n) thrOOM();
usz xia = IA(x);
if (n>xia) {
B xf = getFillE(x);