Mesa (master): util: Fix bad code.
Corbin Simpson
csimpson at kemper.freedesktop.org
Sat Nov 28 18:46:23 UTC 2009
Module: Mesa
Branch: master
Commit: 287bdd8e75aa3b2c20f50de359711158981dfa09
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=287bdd8e75aa3b2c20f50de359711158981dfa09
Author: Corbin Simpson <MostAwesomeDude at gmail.com>
Date: Sat Nov 28 10:45:17 2009 -0800
util: Fix bad code.
Uf. How embarrassing.
---
src/gallium/auxiliary/util/u_math.h | 2 +-
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 c4faec6..a5cd657 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;
More information about the mesa-commit
mailing list