diff --git a/include/haproxy/task.h b/include/haproxy/task.h index c73df7c92..6bd1272b0 100644 --- a/include/haproxy/task.h +++ b/include/haproxy/task.h @@ -187,10 +187,10 @@ static inline int task_in_wq(struct task *t) /* returns true if the current thread has some work to do */ static inline int thread_has_tasks(void) { - return (!!(global_tasks_mask & tid_bit) | - !eb_is_empty(&th_ctx->rqueue) | - !!th_ctx->tl_class_mask | - !MT_LIST_ISEMPTY(&th_ctx->shared_tasklet_list)); + return ((int)!!(global_tasks_mask & tid_bit) | + (int)!eb_is_empty(&th_ctx->rqueue) | + (int)!!th_ctx->tl_class_mask | + (int)!MT_LIST_ISEMPTY(&th_ctx->shared_tasklet_list)); } /* puts the task in run queue with reason flags , and returns */