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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user