diff options
author | Pavel Janík <Pavel@Janik.cz> | 2016-11-10 08:00:05 +0100 |
---|---|---|
committer | Pavel Janík <Pavel@Janik.cz> | 2016-12-05 11:41:46 +0100 |
commit | 9de90bb749926a51aac15d5998bff3e12425675e (patch) | |
tree | c8f36dfda28f69e8f90ea8bffb668a927d031e8c /src/arith_uint256.cpp | |
parent | 43e8150ef69093c906c4406ce58c1fd21fee898e (diff) |
Do not shadow variables (gcc set)
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 a58ad01b5a..64c9dc2bb8 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; } |