big: Add MATH_BIG_FORCE_64/32_BIT flags.

This commit is contained in:
Jeroen van Rijn
2021-08-11 20:59:52 +02:00
parent fc0a92f8ac
commit 2323ca1622
3 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -549,7 +549,7 @@ int_random_digit :: proc(r: ^rnd.Rand = nil) -> (res: DIGIT) {
when _DIGIT_BITS == 60 { // DIGIT = u64
return DIGIT(rnd.uint64(r)) & _MASK;
} else when _DIGIT_BITS == 28 { // DIGIT = u32
return DIGIT(rand.uint32(r)) & _MASK;
return DIGIT(rnd.uint32(r)) & _MASK;
} else {
panic("Unsupported DIGIT size.");
}