Fix some (benign) shadowing warnings

This commit is contained in:
Chris Cannam
2022-09-20 09:30:48 +01:00
parent e90f377600
commit a5e2bfa444
5 changed files with 22 additions and 17 deletions

View File

@@ -465,9 +465,9 @@ protected:
int roundUp(int value) const {
if (value < 1) return 1;
if (!(value & (value - 1))) return value;
int bits = 0;
size_t bits = 0;
while (value) { ++bits; value >>= 1; }
value = 1 << bits;
value = size_t(1) << bits;
return value;
}