BUILD: queues: Use unsigned int when needed

Use unsigned int instead of int when calculating which thread group we
should dequeue from next, as the difference in signedness makes clang
unhappy.
This commit is contained in:
Olivier Houchard 2025-01-28 18:03:11 +01:00 committed by Olivier Houchard
parent b74ec1efc2
commit 9253146b90

View File

@ -428,7 +428,7 @@ int process_srv_queue(struct server *s)
self_served = _HA_ATOMIC_LOAD(&s->per_tgrp[tgid - 1].self_served) % (MAX_SELF_USE_QUEUE + 1); self_served = _HA_ATOMIC_LOAD(&s->per_tgrp[tgid - 1].self_served) % (MAX_SELF_USE_QUEUE + 1);
if ((self_served == MAX_SELF_USE_QUEUE && non_empty_tgids != (1UL << (tgid - 1))) || if ((self_served == MAX_SELF_USE_QUEUE && non_empty_tgids != (1UL << (tgid - 1))) ||
!(non_empty_tgids & (1UL << (tgid - 1)))) { !(non_empty_tgids & (1UL << (tgid - 1)))) {
int old_served, new_served; unsigned int old_served, new_served;
/* /*
* We want to dequeue from another queue. The last * We want to dequeue from another queue. The last