aboutsummaryrefslogtreecommitdiff
path: root/src/test/sigopcount_tests.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2014-12-15 09:11:16 +0100
committerWladimir J. van der Laan <[email protected]>2015-01-05 15:45:34 +0100
commit4f1524966a99c83db8c0c9f1ff74789253a1171e (patch)
tree9107f58fdd2c91af6c82e9b2e09a8af36c3d6ca6 /src/test/sigopcount_tests.cpp
parentTemporarily add SetNull/IsNull/GetCheapHash to base_uint (diff)
downloaddiscoin-4f1524966a99c83db8c0c9f1ff74789253a1171e.tar.xz
discoin-4f1524966a99c83db8c0c9f1ff74789253a1171e.zip
Replace direct use of 0 with SetNull and IsNull
Replace x=0 with .SetNull(), x==0 with IsNull(), x!=0 with !IsNull(). Replace uses of uint256(0) with uint256().
Diffstat (limited to 'src/test/sigopcount_tests.cpp')
-rw-r--r--src/test/sigopcount_tests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/sigopcount_tests.cpp b/src/test/sigopcount_tests.cpp
index 332660149..3c8264d89 100644
--- a/src/test/sigopcount_tests.cpp
+++ b/src/test/sigopcount_tests.cpp
@@ -32,7 +32,7 @@ BOOST_AUTO_TEST_CASE(GetSigOpCount)
BOOST_CHECK_EQUAL(s1.GetSigOpCount(false), 0U);
BOOST_CHECK_EQUAL(s1.GetSigOpCount(true), 0U);
- uint160 dummy(0);
+ uint160 dummy;
s1 << OP_1 << ToByteVector(dummy) << ToByteVector(dummy) << OP_2 << OP_CHECKMULTISIG;
BOOST_CHECK_EQUAL(s1.GetSigOpCount(true), 2U);
s1 << OP_IF << OP_CHECKSIG << OP_ENDIF;