mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
glsl: s/int/unsigned/ to silence warning
This commit is contained in:
parent
c1cac8feec
commit
c0470bf77a
1 changed files with 2 additions and 2 deletions
|
|
@ -777,7 +777,7 @@ ir_reader::read_constant(s_expression *expr)
|
|||
ir_constant_data data = { { 0 } };
|
||||
|
||||
// Read in list of values (at most 16).
|
||||
int k = 0;
|
||||
unsigned k = 0;
|
||||
foreach_iter(exec_list_iterator, it, values->subexpressions) {
|
||||
if (k >= 16) {
|
||||
ir_read_error(values, "expected at most 16 numbers");
|
||||
|
|
@ -821,7 +821,7 @@ ir_reader::read_constant(s_expression *expr)
|
|||
++k;
|
||||
}
|
||||
if (k != type->components()) {
|
||||
ir_read_error(values, "expected %d constant values, found %d",
|
||||
ir_read_error(values, "expected %u constant values, found %u",
|
||||
type->components(), k);
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue