gallium/aux/util/u_dump_defines.c: Fix -Wcompare-unsigned warning
authorGert Wollny <gw.fossdev@gmail.com>
Thu, 16 Nov 2017 15:09:37 +0000 (16:09 +0100)
committerBrian Paul <brianp@vmware.com>
Fri, 17 Nov 2017 16:27:56 +0000 (09:27 -0700)
commit20d3e943b1a1a8edb910672d758716059937cddd
tree4f096818829e0bec4d3aa3991e3dbd16f0031162
parent373c263e2c3886c88e84d853b9df61ad03d1a8ea
gallium/aux/util/u_dump_defines.c: Fix -Wcompare-unsigned warning

u_bit_scan may return -1 that then may be interpreted as (unsigned)-1 in
the following comparison, since num_names is unsigned. Convert the latter to
be int as well.

Signed-off-by: Gert Wollny <gw.fossdev@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/util/u_dump_defines.c