mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 20:10:17 +01:00
mesa: Resolve GCC sign-compare warning.
mesa/src/mesa/program/prog_to_nir.c: In function 'setup_registers_and_variables':
/mesa/src/mesa/program/prog_to_nir.c:1059:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < c->prog->NumTemporaries; i++) {
^
Signed-off-by: Rhys Kidd <rhyskidd@gmail.com>
Reviewed-by: Thomas Helland <thomashelland90@gmail.com>
Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
This commit is contained in:
parent
32cdb49fe2
commit
1c194840fd
1 changed files with 1 additions and 1 deletions
|
|
@ -1056,7 +1056,7 @@ setup_registers_and_variables(struct ptn_compile *c)
|
|||
c->temp_regs = rzalloc_array(c, nir_register *, c->prog->NumTemporaries);
|
||||
|
||||
nir_register *reg;
|
||||
for (int i = 0; i < c->prog->NumTemporaries; i++) {
|
||||
for (unsigned i = 0; i < c->prog->NumTemporaries; i++) {
|
||||
reg = nir_local_reg_create(b->impl);
|
||||
if (!reg) {
|
||||
c->error = true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue