diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-08-10 20:40:37 +0100 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-10-04 21:49:07 +0100 |
commit | 5c5b85d0e7e7bb6eea47be60e20140b9fa9fa745 (patch) | |
tree | 49b90da4fad58fa1f4900c98e7aae5fe7e59acd4 /src/bech32.cpp | |
parent | a23f8c8978dc248519d31014c838fda893782c51 (diff) |
refactor: Make 64-bit shift explicit
Also this change enables MSVC warning C4334 for all codebase.
https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-3-c4334
Diffstat (limited to 'src/bech32.cpp')
-rw-r--r-- | src/bech32.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bech32.cpp b/src/bech32.cpp index dce9b2e4cc..8e0025b8f4 100644 --- a/src/bech32.cpp +++ b/src/bech32.cpp @@ -241,7 +241,7 @@ constexpr std::array<uint32_t, 25> GenerateSyndromeConstants() { std::array<uint32_t, 25> SYNDROME_CONSTS{}; for (int k = 1; k < 6; ++k) { for (int shift = 0; shift < 5; ++shift) { - int16_t b = GF1024_LOG.at(1 << shift); + int16_t b = GF1024_LOG.at(size_t{1} << shift); int16_t c0 = GF1024_EXP.at((997*k + b) % 1023); int16_t c1 = GF1024_EXP.at((998*k + b) % 1023); int16_t c2 = GF1024_EXP.at((999*k + b) % 1023); |