2
0
mirror of https://github.com/boostorg/random.git synced 2026-01-19 04:22:17 +00:00

Replace branched assertions with single assertion to fix compile error

This commit is contained in:
Matt Borland
2025-10-29 14:45:08 +01:00
parent 815af30289
commit 35a469e97a

View File

@@ -434,10 +434,7 @@ private:
// already know what they are.
for(std::size_t j = 0; j < num_bits; ++j) {
if(tmp.i >= n) tmp.twist();
if(j == num_bits - 1)
assert((tmp.x[tmp.i] & 1) == 1);
else
assert((tmp.x[tmp.i] & 1) == 0);
assert((tmp.x[tmp.i] & 1) == (j == num_bits - 1));
++tmp.i;
}
detail::polynomial phi;