mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
nv50: typecast the result of ffs() to unsigned
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
5e130f2371
commit
741e935a72
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ nv50_constbufs_validate(struct nv50_context *nv50)
|
|||
p = NV50_3D_SET_PROGRAM_CB_PROGRAM_VERTEX;
|
||||
|
||||
while (nv50->constbuf_dirty[s]) {
|
||||
const int i = ffs(nv50->constbuf_dirty[s]) - 1;
|
||||
const unsigned i = (unsigned)ffs(nv50->constbuf_dirty[s]) - 1;
|
||||
|
||||
assert(i < NV50_MAX_PIPE_CONSTBUFS);
|
||||
nv50->constbuf_dirty[s] &= ~(1 << i);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue