mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-22 07:30:37 +02:00
mesa: Fix compiler warnings on Windows.
This commit is contained in:
parent
8bdb4d2b2f
commit
a77976d2ee
2 changed files with 2 additions and 2 deletions
|
|
@ -2603,7 +2603,7 @@ parse_src_reg (GLcontext * ctx, const GLubyte ** inst,
|
|||
/* If we're referencing the Program->Parameters[] array, check if the
|
||||
* parameter is really a constant/literal. If so, set File to CONSTANT.
|
||||
*/
|
||||
assert(*Index < Program->Base.Parameters->NumParameters);
|
||||
assert(*Index < (GLint) Program->Base.Parameters->NumParameters);
|
||||
file = Program->Base.Parameters->Parameters[*Index].Type;
|
||||
if (file == PROGRAM_CONSTANT)
|
||||
*File = PROGRAM_CONSTANT;
|
||||
|
|
|
|||
|
|
@ -408,7 +408,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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue