aboutsummaryrefslogtreecommitdiff
path: root/src/test/pmt_tests.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2016-06-09 08:25:13 +0200
committerWladimir J. van der Laan <[email protected]>2016-06-09 08:25:25 +0200
commit0b5279f89c9afcb3af98880cc65cecd25ce29af6 (patch)
treee8d6b0ce4b0705a7b26b746c5e4c2c2b9493ec01 /src/test/pmt_tests.cpp
parentMerge #8154: drop vAddrToSend after sending big addr message (diff)
parentDo not shadow local variables (diff)
downloaddiscoin-0b5279f89c9afcb3af98880cc65cecd25ce29af6.tar.xz
discoin-0b5279f89c9afcb3af98880cc65cecd25ce29af6.zip
Merge #8166: src/test: Do not shadow local variables
c2715d3 Do not shadow local variables (Pavel Janík)
Diffstat (limited to 'src/test/pmt_tests.cpp')
-rw-r--r--src/test/pmt_tests.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/pmt_tests.cpp b/src/test/pmt_tests.cpp
index 2f3f60788..74ffe0cc7 100644
--- a/src/test/pmt_tests.cpp
+++ b/src/test/pmt_tests.cpp
@@ -37,8 +37,8 @@ BOOST_AUTO_TEST_CASE(pmt_test1)
seed_insecure_rand(false);
static const unsigned int nTxCounts[] = {1, 4, 7, 17, 56, 100, 127, 256, 312, 513, 1000, 4095};
- for (int n = 0; n < 12; n++) {
- unsigned int nTx = nTxCounts[n];
+ for (int i = 0; i < 12; i++) {
+ unsigned int nTx = nTxCounts[i];
// build a block with some dummy transactions
CBlock block;