Mesa (master): nv50: typecast the result of ffs() to unsigned
Emil Velikov
evelikov at kemper.freedesktop.org
Sat Jan 18 19:16:36 UTC 2014
Module: Mesa
Branch: master
Commit: 741e935a72b57cba2999239ce6d2bd3744214376
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=741e935a72b57cba2999239ce6d2bd3744214376
Author: Emil Velikov <emil.l.velikov at gmail.com>
Date: Thu Jan 16 16:42:45 2014 +0000
nv50: typecast the result of ffs() to unsigned
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
src/gallium/drivers/nouveau/nv50/nv50_shader_state.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/nouveau/nv50/nv50_shader_state.c b/src/gallium/drivers/nouveau/nv50/nv50_shader_state.c
index c44d208..c9d80ea 100644
--- a/src/gallium/drivers/nouveau/nv50/nv50_shader_state.c
+++ b/src/gallium/drivers/nouveau/nv50/nv50_shader_state.c
@@ -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);
More information about the mesa-commit
mailing list