mesa: fix double->float assignment warnings, int/uint comparison warnings

Reported by Karl Schultz.
This commit is contained in:
Brian Paul
2010-01-27 17:03:04 -07:00
parent 6703fb1917
commit 20fbb24b67
6 changed files with 14 additions and 14 deletions

View File

@@ -580,7 +580,7 @@ _mesa_delete_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 (inst->BranchTarget > (GLint) start) {
inst->BranchTarget -= count;
}
}