Merge pull request #153 from boostorg/int

Cast result to the proper result type
This commit is contained in:
Matt Borland
2026-03-04 11:58:56 -05:00
committed by GitHub
@@ -120,7 +120,7 @@ T generate_uniform_int(
if(mult * range_type(brange) == range - mult + 1) {
// The destination range is an integer power of
// the generator's range.
return(result);
return static_cast<result_type>(result);
}
// Postcondition: mult <= range