summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRhys Kidd <[email protected]>2015-09-08 23:52:49 +0800
committerEmil Velikov <[email protected]>2015-09-10 14:56:41 +0100
commit1c194840fda7b1a6344aa40def9879b418fa977d (patch)
tree294a349d02565744259cd5d7a39abae6bf80c6ff /src
parent32cdb49fe2f0211040bfb16e668169097199bfcc (diff)
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 <[email protected]> Reviewed-by: Thomas Helland <[email protected]> Reviewed-by: Jan Vesely <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/program/prog_to_nir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/program/prog_to_nir.c b/src/mesa/program/prog_to_nir.c
index fccd16fc8c0..ec61100356a 100644
--- a/src/mesa/program/prog_to_nir.c
+++ b/src/mesa/program/prog_to_nir.c
@@ -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;