소스 검색

Merge branch 'maint-0.3.1'

Nick Mathewson 6 년 전
부모
커밋
baf53300d7
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/common/workqueue.c

+ 2 - 2
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;