diff options
| author | practicalswift <[email protected]> | 2018-09-05 15:08:58 +0200 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2019-01-15 20:15:26 +0100 |
| commit | b9dafe7d9ffcbe7928ffbfba816b54e196c57664 (patch) | |
| tree | b2aa7f929c950e0434aebaae16a625afa0abcbfe /src/test/crypto_tests.cpp | |
| parent | Merge #14784: qt: Use WalletModel* instead of the wallet name as map key (diff) | |
| download | discoin-b9dafe7d9ffcbe7928ffbfba816b54e196c57664.tar.xz discoin-b9dafe7d9ffcbe7928ffbfba816b54e196c57664.zip | |
Fix remaining compiler warnings (MSVC). Move disabling of specific warnings from /nowarn to project file.
Diffstat (limited to 'src/test/crypto_tests.cpp')
| -rw-r--r-- | src/test/crypto_tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/crypto_tests.cpp b/src/test/crypto_tests.cpp index f3fd83a0c..86cb00a78 100644 --- a/src/test/crypto_tests.cpp +++ b/src/test/crypto_tests.cpp @@ -532,7 +532,7 @@ BOOST_AUTO_TEST_CASE(countbits_tests) // Check handling of zero. BOOST_CHECK_EQUAL(CountBits(0), 0U); } else if (i < 10) { - for (uint64_t j = 1 << (i - 1); (j >> i) == 0; ++j) { + for (uint64_t j = (uint64_t)1 << (i - 1); (j >> i) == 0; ++j) { // Exhaustively test up to 10 bits BOOST_CHECK_EQUAL(CountBits(j), i); } |