Reviewed-by: Nicolai Hähnle <nicolai.haeh...@amd.com>

On 15.04.2016 19:13, Marek Olšák wrote:
From: Marek Olšák <marek.ol...@amd.com>

---
  src/gallium/auxiliary/util/u_math.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/auxiliary/util/u_math.h 
b/src/gallium/auxiliary/util/u_math.h
index 0a82915..d983af3 100644
--- a/src/gallium/auxiliary/util/u_math.h
+++ b/src/gallium/auxiliary/util/u_math.h
@@ -489,7 +489,7 @@ static inline int
  u_bit_scan(unsigned *mask)
  {
     int i = ffs(*mask) - 1;
-   *mask &= ~(1 << i);
+   *mask &= ~(1u << i);
     return i;
  }


_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to