Re: [Mesa-dev] [PATCH 12/20] intel: Silence "intel/intel_fbo.h:105:4: warning: comparison of unsigned expression < 0 is always false"

2011-09-08 Thread Eric Anholt
On Mon, 29 Aug 2011 14:59:02 -0700, "Ian Romanick" wrote: > From: Ian Romanick > > The test was of an enum, attIndex, which should be unsigned. The > explicit check for < 0 was replaced with a cast to unsigned in an > assertion that attIndex is less than the size of the array it will be > used

[Mesa-dev] [PATCH 12/20] intel: Silence "intel/intel_fbo.h:105:4: warning: comparison of unsigned expression < 0 is always false"

2011-08-29 Thread Ian Romanick
From: Ian Romanick The test was of an enum, attIndex, which should be unsigned. The explicit check for < 0 was replaced with a cast to unsigned in an assertion that attIndex is less than the size of the array it will be used to index. --- src/mesa/drivers/dri/intel/intel_fbo.h |6 +++--- 1