diff options
| author | Wladimir J. van der Laan <[email protected]> | 2016-06-09 08:25:13 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2016-06-09 08:25:25 +0200 |
| commit | 0b5279f89c9afcb3af98880cc65cecd25ce29af6 (patch) | |
| tree | e8d6b0ce4b0705a7b26b746c5e4c2c2b9493ec01 /src/test/pmt_tests.cpp | |
| parent | Merge #8154: drop vAddrToSend after sending big addr message (diff) | |
| parent | Do not shadow local variables (diff) | |
| download | discoin-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.cpp | 4 |
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; |