Skip to content

Commit

Permalink
WIP: Different way of picking unsigned type in uniform_integer_distri…
Browse files Browse the repository at this point in the history
…bution
  • Loading branch information
horenmar committed Apr 3, 2024
1 parent c13ddcb commit a13aff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/catch2/internal/catch_uniform_integer_distribution.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ template <typename IntegerType>
class uniform_integer_distribution {
static_assert(std::is_integral<IntegerType>::value, "...");

using UnsignedIntegerType = Detail::make_unsigned_t<IntegerType>;
using UnsignedIntegerType = Detail::SizedUnsignedType_t<sizeof(IntegerType)>;

// Only the left bound is stored, and we store it converted to its
// unsigned image. This avoids having to do the conversions inside
Expand Down

0 comments on commit a13aff5

Please sign in to comment.