mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 23:18:14 +01:00
Drop uint 256 not operator
All the other operators are integer or bit operations, and this is unused apart from tests.
This commit is contained in:
@@ -198,13 +198,6 @@ BOOST_AUTO_TEST_CASE( shifts ) { // "<<" ">>" "<<=" ">>="
|
||||
|
||||
BOOST_AUTO_TEST_CASE( unaryOperators ) // ! ~ -
|
||||
{
|
||||
BOOST_CHECK(!ZeroL);
|
||||
BOOST_CHECK(!(!OneL));
|
||||
for (unsigned int i = 0; i < 256; ++i)
|
||||
BOOST_CHECK(!(!(OneL<<i)));
|
||||
BOOST_CHECK(!(!R1L));
|
||||
BOOST_CHECK(!(!MaxL));
|
||||
|
||||
BOOST_CHECK(~ZeroL == MaxL);
|
||||
|
||||
unsigned char TmpArray[32];
|
||||
|
||||
Reference in New Issue
Block a user