From: Christoph Bumiller Date: Mon, 2 Apr 2012 18:55:03 +0000 (+0200) Subject: nv50/ir/opt: silence warning (int < Elements() signedness) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=51327a2df283da9a77c6e537751c6a45baed6951;p=mesa.git nv50/ir/opt: silence warning (int < Elements() signedness) --- 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));