]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Try to work around a compile warning in workqueue.c
authorNick Mathewson <nickm@torproject.org>
Fri, 28 Jul 2017 00:32:59 +0000 (20:32 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 28 Jul 2017 00:32:59 +0000 (20:32 -0400)
src/common/workqueue.c

index d1303ee0e3e2af863cc05231cbcfc035e5db33eb..42723224d3f414309f36203a0dffc3fa9c3d2062 100644 (file)
@@ -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;