util: Fix bad code.

Uf. How embarrassing.
This commit is contained in:
Corbin Simpson 2009-11-28 10:45:17 -08:00
parent c93dcbfea7
commit 287bdd8e75
1 changed files with 1 additions and 1 deletions

View File

@ -506,7 +506,7 @@ util_bitcount(unsigned n)
* one iteration per bit less than highest set bit. * one iteration per bit less than highest set bit.
*/ */
unsigned bits = 0; unsigned bits = 0;
for (bits, n, bits++) { for (bits; n; bits++) {
n &= n - 1; n &= n - 1;
} }
return bits; return bits;