Do not shadow variables (gcc set)

This commit is contained in:
Pavel Janík
2016-11-10 08:00:05 +01:00
parent 43e8150ef6
commit 9de90bb749
14 changed files with 45 additions and 45 deletions

View File

@@ -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;
}