mirror of
https://github.com/boostorg/unordered.git
synced 2025-05-12 14:01:43 +00:00
Fix typo, potential UB in overflow check and refactor to use BOOST_ASSERT_MSG() (#157)
This commit is contained in:
parent
189e551dc7
commit
a7156026b3
@ -43,8 +43,8 @@ namespace test {
|
|||||||
inline int generate(int const*, random_generator g)
|
inline int generate(int const*, random_generator g)
|
||||||
{
|
{
|
||||||
if (g == sequential) {
|
if (g == sequential) {
|
||||||
BOOST_ASSERT(
|
BOOST_ASSERT_MSG(
|
||||||
g + 1 < INT_MAX && "test::reset_sequence() should be invoked");
|
origin < INT_MAX, "test::reset_sequence() should be invoked");
|
||||||
return origin++;
|
return origin++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user