mesa: Fix compiler warnings on Windows.
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 5 Nov 2008 23:04:40 +0000 (16:04 -0700)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 5 Nov 2008 23:04:40 +0000 (16:04 -0700)
cherry-picked subset of a77976d2ee578d0483c64f2aa41719bbae9c1c97

src/mesa/shader/slang/slang_link.c

index 1398a5ec6c71766a77f6b3fee9a1f8ab48e9a0f9..5c8b626ea7d8d02a431e0caac5b5d54a10a667e9 100644 (file)
@@ -409,7 +409,7 @@ _slang_update_inputs_outputs(struct gl_program *prog)
             }
          }
          else if (inst->SrcReg[j].File == PROGRAM_ADDRESS) {
-            maxAddrReg = MAX2(maxAddrReg, inst->SrcReg[j].Index + 1);
+            maxAddrReg = MAX2(maxAddrReg, (GLuint) (inst->SrcReg[j].Index + 1));
          }
       }
       if (inst->DstReg.File == PROGRAM_OUTPUT) {