diff options
author | Rhys Kidd <[email protected]> | 2015-08-06 16:34:10 +1000 |
---|---|---|
committer | Matt Turner <[email protected]> | 2015-08-18 11:34:44 -0700 |
commit | 9febec0811a842644b6f4ea7cf20e845d9d55120 (patch) | |
tree | 668da79efb5da0c36df114eb484d7888555297e9 | |
parent | 5be455281eca77955aff52f01c6adb9281f4d747 (diff) |
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 <[email protected]>
Reviewed-by: Thomas Helland <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_primitive_restart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_primitive_restart.c b/src/mesa/drivers/dri/i965/brw_primitive_restart.c index 6ed79d7cb75..c8d90027ea0 100644 --- a/src/mesa/drivers/dri/i965/brw_primitive_restart.c +++ b/src/mesa/drivers/dri/i965/brw_primitive_restart.c @@ -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: |