i965: Resolve GCC sign-compare warning.

mesa/src/mesa/drivers/dri/i965/brw_primitive_restart.c: In function 'can_cut_index_handle_prims':
mesa/src/mesa/drivers/dri/i965/brw_primitive_restart.c:94:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for (int i = 0; i < nr_prims; i++) {
                      ^

Signed-off-by: Rhys Kidd <rhyskidd@gmail.com>
Reviewed-by: Thomas Helland <thomashelland90@gmail.com>
This commit is contained in:
Rhys Kidd 2015-08-06 16:34:10 +10:00 committed by Matt Turner
parent 5be455281e
commit 9febec0811
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ can_cut_index_handle_prims(struct gl_context *ctx,
return false;
}
for (int i = 0; i < nr_prims; i++) {
for (unsigned i = 0; i < nr_prims; i++) {
switch (prim[i].mode) {
case GL_POINTS:
case GL_LINES: