mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-09 00:32:33 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
if ((self_served == MAX_SELF_USE_QUEUE && 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
|
||||
|
|
|
|||
Loading…
Reference in a new issue