From 51327a2df283da9a77c6e537751c6a45baed6951 Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Mon, 2 Apr 2012 20:55:03 +0200 Subject: [PATCH] nv50/ir/opt: silence warning (int < Elements() signedness) --- src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp b/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp index f5262006c11..867bcb0408f 100644 --- a/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp +++ b/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp @@ -1513,7 +1513,7 @@ MemoryOpt::replaceStFromSt(Instruction *restrict st, Record *rec) // get non-replaced sources after values covered by st for (; offR < endR; offR += ri->getSrc(s)->reg.size, ++s) vals[k++] = ri->getSrc(s); - assert(k <= Elements(vals)); + assert((unsigned int)k <= Elements(vals)); for (s = 0; s < k; ++s) st->setSrc(s + 1, vals[s]); st->setSrc(0, ri->getSrc(0)); -- 2.30.2