rand/dist/uniform: avoid sign comparison warning in assertion

This commit is contained in:
Danny Robson 2020-11-12 13:08:11 +10:00
parent f091e97f11
commit 5cea4fb7b5

View File

@ -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,