merge emptyIVec() case with bitUD[0]

This commit is contained in:
dzaima 2023-05-05 12:18:31 +03:00
parent 78eeaae762
commit 1072d0bb9c

View File

@ -431,7 +431,7 @@ B rand_deal_c1(B t, B x) {
i32 xi = o2i(x);
if (RARE(xi<=1)) {
if (xi<0) thrM("(rand).Deal: Argument cannot be negative");
return xi==0? emptyIVec() : taga(ptr_inc(bitUD[xi]));
return taga(ptr_inc(bitUD[xi]));
}
RAND_START;