summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util/u_math.h
diff options
context:
space:
mode:
authorCorbin Simpson <MostAwesomeDude@gmail.com>2009-11-28 10:45:17 -0800
committerCorbin Simpson <MostAwesomeDude@gmail.com>2009-11-28 10:45:17 -0800
commit287bdd8e75aa3b2c20f50de359711158981dfa09 (patch)
treedbd2a74a13508f093bcedb85f68d5d27c619d217 /src/gallium/auxiliary/util/u_math.h
parentc93dcbfea7b8e1cd0f14a96bc466419bdce7eb30 (diff)
util: Fix bad code.
Uf. How embarrassing.
Diffstat (limited to 'src/gallium/auxiliary/util/u_math.h')
-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 c4faec671c..a5cd6574c0 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;