summaryrefslogtreecommitdiff
path: root/src/mesa/shader/slang/slang_link.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-11-05 16:04:40 -0700
committerBrian Paul <brian.paul@tungstengraphics.com>2008-11-05 16:04:40 -0700
commit1bfdab781b515f8eefc0b3c963295a1adb8f8146 (patch)
tree2c476a35bb357aab30b4476028c5ecc1e46aaf7e /src/mesa/shader/slang/slang_link.c
parent50beb4e6fd2e06d6007c69899111f6a22319a4d8 (diff)
mesa: Fix compiler warnings on Windows.
cherry-picked subset of a77976d2ee578d0483c64f2aa41719bbae9c1c97
Diffstat (limited to 'src/mesa/shader/slang/slang_link.c')
-rw-r--r--src/mesa/shader/slang/slang_link.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/slang_link.c b/src/mesa/shader/slang/slang_link.c
index 1398a5ec6c..5c8b626ea7 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) {