diff options
| author | Wladimir J. van der Laan <[email protected]> | 2017-03-03 15:48:18 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2017-03-03 15:48:53 +0100 |
| commit | 75d012e8c7d0b2dfec0fe34807eabb4f661f4fb7 (patch) | |
| tree | 068cbf16562b5cfbb1887ffb55385a5f12b76059 /src/arith_uint256.cpp | |
| parent | Merge #9903: Docs: add details to -rpcclienttimeout doc (diff) | |
| parent | Check and enable -Wshadow by default. (diff) | |
| download | discoin-75d012e8c7d0b2dfec0fe34807eabb4f661f4fb7.tar.xz discoin-75d012e8c7d0b2dfec0fe34807eabb4f661f4fb7.zip | |
Merge #8808: Do not shadow variables (gcc set)
ad1ae7a Check and enable -Wshadow by default. (Pavel Janík)
9de90bb Do not shadow variables (gcc set) (Pavel Janík)
Tree-SHA512: 9517feb423dc8ddd63896016b25324673bfbe0bffa97f22996f59d7a3fcbdc2ebf2e43ac02bc067546f54e293e9b2f2514be145f867321e9031f895c063d9fb8
Diffstat (limited to 'src/arith_uint256.cpp')
| -rw-r--r-- | src/arith_uint256.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/arith_uint256.cpp b/src/arith_uint256.cpp index f9f2d19e6..dd34a313b 100644 --- a/src/arith_uint256.cpp +++ b/src/arith_uint256.cpp @@ -173,9 +173,9 @@ unsigned int base_uint<BITS>::bits() const { for (int pos = WIDTH - 1; pos >= 0; pos--) { if (pn[pos]) { - for (int bits = 31; bits > 0; bits--) { - if (pn[pos] & 1 << bits) - return 32 * pos + bits + 1; + for (int nbits = 31; nbits > 0; nbits--) { + if (pn[pos] & 1 << nbits) + return 32 * pos + nbits + 1; } return 32 * pos + 1; } |