summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorbin Simpson <[email protected]>2009-11-28 10:45:17 -0800
committerCorbin Simpson <[email protected]>2009-11-28 10:45:17 -0800
commit287bdd8e75aa3b2c20f50de359711158981dfa09 (patch)
treedbd2a74a13508f093bcedb85f68d5d27c619d217
parentc93dcbfea7b8e1cd0f14a96bc466419bdce7eb30 (diff)
util: Fix bad code.
Uf. How embarrassing.
-rw-r--r--src/gallium/auxiliary/util/u_math.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_math.h b/src/gallium/auxiliary/util/u_math.h
index c4faec671cb..a5cd6574c0e 100644
--- a/src/gallium/auxiliary/util/u_math.h
+++ b/src/gallium/auxiliary/util/u_math.h
@@ -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;