tgsi/scan: add an assert for the size of the samplers_declared bitfield
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 7 Apr 2016 17:19:56 +0000 (12:19 -0500)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 7 Apr 2016 18:15:05 +0000 (13:15 -0500)
commit4bfcc86bf977ac18465c7be0a0fa14354b18d7c6
tree6d4f21b162449b19192986195e05a33051277081
parentcc39879989a1f24c232a7d1b7037c4d3fcff2ce2
tgsi/scan: add an assert for the size of the samplers_declared bitfield

The literal 1 is a (signed) int, and shifting into the sign bit is undefined
in C, so change occurences of 1 to 1u.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/tgsi/tgsi_scan.c