mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
Use std::numeric_limits<UNSIGNED>::max()) instead of (UNSIGNED)-1
This commit is contained in:
parent
6b82fc59eb
commit
cf4b0327ed
4 changed files with 6 additions and 5 deletions
|
|
@ -200,7 +200,7 @@ BOOST_AUTO_TEST_CASE(varints)
|
|||
}
|
||||
|
||||
for (uint64_t i = 0; i < 100000000000ULL; i += 999999937) {
|
||||
uint64_t j = -1;
|
||||
uint64_t j = std::numeric_limits<uint64_t>::max();
|
||||
ss >> VARINT(j);
|
||||
BOOST_CHECK_MESSAGE(i == j, "decoded:" << j << " expected:" << i);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue