From: Brian Paul Date: Wed, 5 Nov 2008 23:04:40 +0000 (-0700) Subject: mesa: Fix compiler warnings on Windows. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1bfdab781b515f8eefc0b3c963295a1adb8f8146;p=mesa.git mesa: Fix compiler warnings on Windows. cherry-picked subset of a77976d2ee578d0483c64f2aa41719bbae9c1c97 --- diff --git a/src/mesa/shader/slang/slang_link.c b/src/mesa/shader/slang/slang_link.c index 1398a5ec6c7..5c8b626ea7d 100644 --- a/src/mesa/shader/slang/slang_link.c +++ b/src/mesa/shader/slang/slang_link.c @@ -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) {