mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
gallium/util: fix undefined shift to the last bit in u_bit_scan
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
9434aa8103
commit
6dc21b1962
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue