aboutsummaryrefslogtreecommitdiff
path: root/helper
diff options
context:
space:
mode:
authorJanne Peltonen <janne.peltonen@nokia.com>2022-02-01 10:19:24 +0000
committerPetri Savolainen <petri.savolainen@nokia.com>2022-02-03 13:13:39 +0200
commitec7a9f6a5dc855eca30fb5dbdb7fa6bef354feec (patch)
tree457de7246001a591bbe0cb897f07d5822c78134e /helper
parentbc916e1d718f5844e05b6a13c379d9eddfb8b6c0 (diff)
helper: thread: get rid of an unsigned-signed comparison warning
Get rid of a warning by GCC 11 about a comparison between an unsigned variable and a signed literal. Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Diffstat (limited to 'helper')
-rw-r--r--helper/threads.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/helper/threads.c b/helper/threads.c
index 221709a04..90dd45f50 100644
--- a/helper/threads.c
+++ b/helper/threads.c
@@ -204,7 +204,7 @@ static int create_pthread(odph_thread_t *thread, int cpu, uint64_t stack_size)
*/
stack_size = (stack_size + ODP_PAGE_SIZE - 1) & ~(ODP_PAGE_SIZE - 1);
- if (stack_size < PTHREAD_STACK_MIN)
+ if (stack_size < (uint64_t)PTHREAD_STACK_MIN)
stack_size = PTHREAD_STACK_MIN;
if (pthread_attr_setstacksize(&thread->thread.attr, stack_size)) {