mesa: Clean up two 'comparison between signed and unsigned' warnings
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 11 Oct 2010 23:13:11 +0000 (16:13 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 13 Oct 2010 22:35:23 +0000 (15:35 -0700)
src/mesa/main/shaderapi.c

index c90e5b74cb6c385f92425852a63c0f028c874c5c..9b48610d166146cc80a02aacd6aa245849c0136b 100644 (file)
@@ -998,7 +998,7 @@ validate_samplers(struct gl_context *ctx, const struct gl_program *prog, char *e
       assert(sampler < MAX_TEXTURE_IMAGE_UNITS);
       unit = prog->SamplerUnits[sampler];
       target = prog->SamplerTargets[sampler];
-      if (targetUsed[unit] != -1 && targetUsed[unit] != target) {
+      if (targetUsed[unit] != -1 && targetUsed[unit] != (int) target) {
          _mesa_snprintf(errMsg, 100,
                  "Texture unit %d is accessed both as %s and %s",
                  unit, targetName[targetUsed[unit]], targetName[target]);
@@ -1563,7 +1563,7 @@ _mesa_ProgramParameteriARB(GLuint program, GLenum pname,
    switch (pname) {
    case GL_GEOMETRY_VERTICES_OUT_ARB:
       if (value < 1 ||
-          value > ctx->Const.GeometryProgram.MaxGeometryOutputVertices) {
+          (unsigned) value > ctx->Const.GeometryProgram.MaxGeometryOutputVertices) {
          _mesa_error(ctx, GL_INVALID_VALUE,
                      "glProgramParameteri(GL_GEOMETRY_VERTICES_OUT_ARB=%d",
                      value);