Skip to content

Commit

Permalink
make type for used bit explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
jeizenga committed Jul 27, 2022
1 parent 8054c88 commit 4bc0486
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/statistics.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,7 @@ class WideningPRNG {
auto used_bits = numeric_limits<long long unsigned int>::digits - unused_bits;

// Get just that max used bit
OutType used_bit = 1 << (used_bits - 1);
OutType used_bit = OutType(1) << (used_bits - 1);

// If a generated number from the RNG has this bit flag in it, it has
// passed the largest complete power of 2 it can make and needs to be
Expand Down

1 comment on commit 4bc0486

@adamnovak
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vg CI tests complete for branch distr-test-hang. View the full report here.

16 tests passed, 0 tests failed and 0 tests skipped in 8568 seconds

Please sign in to comment.