mesa: fix MSVC signed/unsigned warnings in transformfeedback.c
authorBrian Paul <brianp@vmware.com>
Sun, 4 Nov 2012 23:43:44 +0000 (16:43 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 6 Nov 2012 14:42:37 +0000 (07:42 -0700)
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/mesa/main/transformfeedback.c

index 1afc0dccb323c5d785e474fcaa18d09582e508e2..1e3a7ea0f32dade3749068c459937ceb48a021ef 100644 (file)
@@ -599,7 +599,7 @@ _mesa_TransformFeedbackVaryings(GLuint program, GLsizei count,
    }
 
    /* free existing varyings, if any */
-   for (i = 0; i < shProg->TransformFeedback.NumVarying; i++) {
+   for (i = 0; i < (GLint) shProg->TransformFeedback.NumVarying; i++) {
       free(shProg->TransformFeedback.VaryingNames[i]);
    }
    free(shProg->TransformFeedback.VaryingNames);
@@ -614,7 +614,7 @@ _mesa_TransformFeedbackVaryings(GLuint program, GLsizei count,
    }
 
    /* Save the new names and the count */
-   for (i = 0; i < (GLuint) count; i++) {
+   for (i = 0; i < count; i++) {
       shProg->TransformFeedback.VaryingNames[i] = _mesa_strdup(varyings[i]);
    }
    shProg->TransformFeedback.NumVarying = count;