From af3079a492ef1611422f97c72fe07426931830d1 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 27 Jul 2017 20:32:59 -0400 Subject: [PATCH] Try to work around a compile warning in workqueue.c --- src/common/workqueue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/workqueue.c b/src/common/workqueue.c index d1303ee0e..42723224d 100644 --- a/src/common/workqueue.c +++ b/src/common/workqueue.c @@ -377,8 +377,8 @@ threadpool_queue_work_priority(threadpool_t *pool, void (*reply_fn)(void *), void *arg) { - tor_assert(prio >= WORKQUEUE_PRIORITY_FIRST && - prio <= WORKQUEUE_PRIORITY_LAST); + tor_assert(((int)prio) >= WORKQUEUE_PRIORITY_FIRST && + ((int)prio) <= WORKQUEUE_PRIORITY_LAST); workqueue_entry_t *ent = workqueue_entry_new(fn, reply_fn, arg); ent->on_pool = pool;