mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 12:10:09 +01:00
util: Fix bad code.
Uf. How embarrassing.
This commit is contained in:
parent
c93dcbfea7
commit
287bdd8e75
1 changed files with 1 additions and 1 deletions
|
|
@ -506,7 +506,7 @@ util_bitcount(unsigned n)
|
|||
* one iteration per bit less than highest set bit.
|
||||
*/
|
||||
unsigned bits = 0;
|
||||
for (bits, n, bits++) {
|
||||
for (bits; n; bits++) {
|
||||
n &= n - 1;
|
||||
}
|
||||
return bits;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue