mirror of
https://github.com/boostorg/unordered.git
synced 2025-05-11 13:34:06 +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)
|
||||
{
|
||||
if (g == sequential) {
|
||||
BOOST_ASSERT(
|
||||
g + 1 < INT_MAX && "test::reset_sequence() should be invoked");
|
||||
BOOST_ASSERT_MSG(
|
||||
origin < INT_MAX, "test::reset_sequence() should be invoked");
|
||||
return origin++;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user