We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c5f0d5 commit 96f6dc9Copy full SHA for 96f6dc9
src/arith_uint256.cpp
@@ -176,7 +176,7 @@ unsigned int base_uint<BITS>::bits() const
176
for (int pos = WIDTH - 1; pos >= 0; pos--) {
177
if (pn[pos]) {
178
for (int nbits = 31; nbits > 0; nbits--) {
179
- if (pn[pos] & 1 << nbits)
+ if (pn[pos] & 1U << nbits)
180
return 32 * pos + nbits + 1;
181
}
182
return 32 * pos + 1;
0 commit comments