core: Change cur_bitfield_end to uint32_t in class__find_holes()
And it is being compared against uint32_t variables, resulting in this clang warning: /var/home/acme/git/pahole/dwarves.c:1430:44: note: in expansion of macro ‘min’ 1430 | int bitfield_end = min(bit_start, cur_bitfield_end); | ^~~ Since it can't be less than zero, just make then uint32_t. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
5900f43f10
commit
182cdcaed9
|
@ -1389,7 +1389,7 @@ void class__find_holes(struct class *class)
|
|||
{
|
||||
const struct type *ctype = &class->type;
|
||||
struct class_member *pos, *last = NULL;
|
||||
int cur_bitfield_end = ctype->size * 8, cur_bitfield_size = 0;
|
||||
uint32_t cur_bitfield_end = ctype->size * 8, cur_bitfield_size = 0;
|
||||
int bit_holes = 0, byte_holes = 0;
|
||||
uint32_t bit_start, bit_end;
|
||||
int last_seen_bit = 0;
|
||||
|
|
Loading…
Reference in New Issue