Re: [Mesa-dev] [PATCH] mesa: Use MIN instead of CLAMP for unsigned source data

2012-10-22 Thread Brian Paul
On 10/22/2012 03:26 PM, Ian Romanick wrote: From: Ian Romanick 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-l

[Mesa-dev] [PATCH] mesa: Use MIN instead of CLAMP for unsigned source data

2012-10-22 Thread Ian Romanick
From: Ian Romanick 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 --- src