From 1bfdab781b515f8eefc0b3c963295a1adb8f8146 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 5 Nov 2008 16:04:40 -0700 Subject: [PATCH] mesa: Fix compiler warnings on Windows. cherry-picked subset of a77976d2ee578d0483c64f2aa41719bbae9c1c97 --- src/mesa/shader/slang/slang_link.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.30.2