diff options
author | Marek Olšák <[email protected]> | 2016-04-16 02:09:55 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-04-18 19:51:24 +0200 |
commit | 6dc21b196218e9139d5b3e4a5308fe335fc92cf7 (patch) | |
tree | ecaf9ca51f3de4218df74242ddfd019b9d37be58 | |
parent | 9434aa8103e93c9a80421b20f04b526ef543d46e (diff) |
gallium/util: fix undefined shift to the last bit in u_bit_scan
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
-rw-r--r-- | 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 0a829158b11..d983af33203 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; } |