[Mesa-dev] [PATCH 14/21] i965: Resolve GCC sign-compare warning.
Rhys Kidd
rhyskidd at gmail.com
Sun Aug 2 23:09:15 PDT 2015
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 at gmail.com>
---
src/mesa/drivers/dri/i965/brw_primitive_restart.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/i965/brw_primitive_restart.c b/src/mesa/drivers/dri/i965/brw_primitive_restart.c
index 2c7a7e8..6155dd6 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 (GLuint i = 0; i < nr_prims; i++) {
switch (prim[i].mode) {
case GL_POINTS:
case GL_LINES:
--
2.1.4
More information about the mesa-dev
mailing list