gallium/util: fix u_bit_scan_consecutive_range for mask == 0xffffffff
authorMarek Olšák <marek.olsak@amd.com>
Fri, 15 Apr 2016 20:08:57 +0000 (22:08 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 18 Apr 2016 17:51:24 +0000 (19:51 +0200)
commit9434aa8103e93c9a80421b20f04b526ef543d46e
tree0ec7ffc7c9a0a0ffc36eedc95b1232385f2b16eb
parente50e1f86b092d09a24e21122e1284054c54fb3cd
gallium/util: fix u_bit_scan_consecutive_range for mask == 0xffffffff

The second ffs returns 0, yielding count == -1.

v2: change 1 to 1u

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/gallium/auxiliary/util/u_math.h