mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
st/mesa: silence signed/unsigned comparison warning
This commit is contained in:
parent
d733e5da9c
commit
a8ed00d5f1
1 changed files with 2 additions and 2 deletions
|
|
@ -4036,7 +4036,7 @@ src_register(struct st_translate *t,
|
|||
|
||||
case PROGRAM_TEMPORARY:
|
||||
assert(index >= 0);
|
||||
assert(index < Elements(t->temps));
|
||||
assert(index < (int) Elements(t->temps));
|
||||
if (ureg_dst_is_undef(t->temps[index]))
|
||||
t->temps[index] = ureg_DECL_local_temporary(t->ureg);
|
||||
return ureg_src(t->temps[index]);
|
||||
|
|
@ -4069,7 +4069,7 @@ src_register(struct st_translate *t,
|
|||
return ureg_src(t->address[index]);
|
||||
|
||||
case PROGRAM_SYSTEM_VALUE:
|
||||
assert(index < Elements(t->systemValues));
|
||||
assert(index < (int) Elements(t->systemValues));
|
||||
return t->systemValues[index];
|
||||
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue