mesa: fix signed/unsigned comparison warnings

This commit is contained in:
Brian Paul
2011-12-26 14:45:42 -07:00
parent 0a7602b938
commit 62f2d6ef03
+2 -2
View File
@@ -648,7 +648,7 @@ _mesa_uniform(struct gl_context *ctx, struct gl_shader_program *shProg,
if (offset >= uni->array_elements)
return;
count = MIN2(count, (uni->array_elements - offset));
count = MIN2(count, (int) (uni->array_elements - offset));
}
FLUSH_VERTICES(ctx, _NEW_PROGRAM_CONSTANTS);
@@ -797,7 +797,7 @@ _mesa_uniform_matrix(struct gl_context *ctx, struct gl_shader_program *shProg,
if (offset >= uni->array_elements)
return;
count = MIN2(count, (uni->array_elements - offset));
count = MIN2(count, (int) (uni->array_elements - offset));
}
FLUSH_VERTICES(ctx, _NEW_PROGRAM_CONSTANTS);