merge emptyIVec() case with bitUD[0]
This commit is contained in:
parent
78eeaae762
commit
1072d0bb9c
@ -431,7 +431,7 @@ B rand_deal_c1(B t, B x) {
|
|||||||
i32 xi = o2i(x);
|
i32 xi = o2i(x);
|
||||||
if (RARE(xi<=1)) {
|
if (RARE(xi<=1)) {
|
||||||
if (xi<0) thrM("(rand).Deal: Argument cannot be negative");
|
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;
|
RAND_START;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user