mesa: Use MIN instead of CLAMP for unsigned source data
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 22 Oct 2012 21:08:31 +0000 (14:08 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 24 Oct 2012 18:03:16 +0000 (11:03 -0700)
commitbe1c5f44988fd3d4e2a4f1437a8367f3bd073161
tree0f471f6e3eb7dcfdc7806165e92b8aad73c3b8d2
parenteee1ff423c6a0c9c776b4e76b79bb5ed5480d83c
mesa: Use MIN instead of CLAMP for unsigned source data

This silences a zillion GCC warnings like:

../../../src/mesa/main/pack.c: In function '_mesa_pack_rgba_span_from_uints':
../../../src/mesa/main/pack.c:560:13: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/pack.c