From 9de90bb749926a51aac15d5998bff3e12425675e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Jan=C3=ADk?= Date: Thu, 10 Nov 2016 08:00:05 +0100 Subject: Do not shadow variables (gcc set) --- src/arith_uint256.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/arith_uint256.cpp') 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() 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; } -- cgit v1.2.3