[Mesa-dev] [PATCH] mesa: unsigned int can't be negative
David Heidelberger
david.heidelberger at ixit.cz
Fri Sep 5 19:35:15 PDT 2014
Fixes commit b6e9b54d066d29d250c4502e0005b317589dd8b3 .
Signed-off-by: David Heidelberger <david.heidelberger at ixit.cz>
---
src/mesa/program/register_allocate.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/program/register_allocate.c
b/src/mesa/program/register_allocate.c
index db2be5d..353026a 100644
--- a/src/mesa/program/register_allocate.c
+++ b/src/mesa/program/register_allocate.c
@@ -505,7 +505,7 @@ ra_select(struct ra_graph *g)
while (g->stack_count != 0) {
unsigned int ri;
- unsigned int r = -1;
+ int r = -1;
int n = g->stack[g->stack_count - 1];
struct ra_class *c = g->regs->classes[g->nodes[n].class];
--
2.1.0
More information about the mesa-dev
mailing list