rand/dist/uniform: avoid sign comparison warning in assertion
This commit is contained in:
parent
f091e97f11
commit
5cea4fb7b5
@ -91,7 +91,7 @@ namespace cruft::rand::distribution {
|
||||
num_t const range = gen_range + 1;
|
||||
num_t const scale = our_range / range;
|
||||
|
||||
CHECK_LE (scale, std::numeric_limits<result_type>::max ());
|
||||
CHECK_LE (scale, num_t (std::numeric_limits<result_type>::max ()));
|
||||
|
||||
param_type p_ {
|
||||
.a = 0,
|
||||
|
Loading…
Reference in New Issue
Block a user