Merge branch 'master' into gallium-0.2
[mesa.git] / src / mesa / shader / program.c
index 6263fd277f8a2ea1e86ad3d06c14acf79f78fefe..f120c20bdf23695c951fdcb5c5937215d04265ce 100644 (file)
@@ -517,7 +517,7 @@ _mesa_insert_instructions(struct gl_program *prog, GLuint start, GLuint count)
    for (i = 0; i < prog->NumInstructions; i++) {
       struct prog_instruction *inst = prog->Instructions + i;
       if (inst->BranchTarget > 0) {
-         if (inst->BranchTarget >= start) {
+         if ((GLuint)inst->BranchTarget >= start) {
             inst->BranchTarget += count;
          }
       }