mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 15:17:01 +02:00
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:
parent
b74ec1efc2
commit
9253146b90
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user