Module: Mesa
Branch: master
Commit: 287bdd8e75aa3b2c20f50de359711158981dfa09
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=287bdd8e75aa3b2c20f50de359711158981dfa09

Author: Corbin Simpson <[email protected]>
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;

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to