diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2018-06-07 19:21:06 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2018-06-07 19:21:22 +0200 |
commit | 97073f8837f384936ab002c614ed091df9520a61 (patch) | |
tree | 62d566dfd596c9f189ce9056f640b16072603a9e /src/test/arith_uint256_tests.cpp | |
parent | ea263e1eb030530d3cfe76542c6322de3d1bfa31 (diff) | |
parent | 2acd1d6716959b99e751cf85a7c47aaa383e937f (diff) | |
download | bitcoin-97073f8837f384936ab002c614ed091df9520a61.tar.xz |
Merge #13396: Drop unused arith_uint256 ! operator
2acd1d6716959b99e751cf85a7c47aaa383e937f Drop uint 256 not operator (Ben Woosley)
Pull request description:
All the other operators are integer or bitwise operations, and this is unused
apart from tests.
Note attempting to call `!` on `arith_uint256` results in a build error after this change:
```
test/arith_uint256_tests.cpp:201:17: error: invalid argument type 'const arith_uint256' to unary expression
BOOST_CHECK(!ZeroL);
```
Tree-SHA512: 5791b643f426dac9829e9499d678786f1ad294edb2d840879252a1b642bda55941632114f64048660a5991a984aeba49eeb5dfe64ba0a6275cbe7b1c049d7095
Diffstat (limited to 'src/test/arith_uint256_tests.cpp')
-rw-r--r-- | src/test/arith_uint256_tests.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/test/arith_uint256_tests.cpp b/src/test/arith_uint256_tests.cpp index 13ec19834a..8644aea371 100644 --- a/src/test/arith_uint256_tests.cpp +++ b/src/test/arith_uint256_tests.cpp @@ -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]; |