intel: Silence "intel/intel_fbo.h:105:4: warning: comparison of unsigned expression...
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 26 Aug 2011 17:53:43 +0000 (10:53 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 9 Sep 2011 19:01:51 +0000 (12:01 -0700)
commit1a8111aea43b714609a20c1cb841ca58ae10dd83
tree6c8d115fa30ed403944da98452c1bc6feb943d62
parented3040f3baa468a0e16ea1ae2e5202c18d838c8f
intel: Silence "intel/intel_fbo.h:105:4: warning: comparison of unsigned expression < 0 is always false"

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.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/intel/intel_fbo.h