Skip to content
Permalink
Browse files
Fix compilation error due to type mismatch in tpool_generic.cc
size_t compared to int
  • Loading branch information
cvicentiu committed Feb 13, 2020
1 parent ad17aa1 commit efa9079
Showing 1 changed file with 1 addition and 1 deletion.
@@ -713,7 +713,7 @@ void thread_pool_generic::maybe_wake_or_create_thread()
{
if (m_task_queue.empty())
return;
DBUG_ASSERT(m_active_threads.size() >= m_long_tasks_count + m_waiting_task_count);
DBUG_ASSERT(m_active_threads.size() >= static_cast<size_t>(m_long_tasks_count + m_waiting_task_count));
if (m_active_threads.size() - m_long_tasks_count - m_waiting_task_count > m_concurrency)
return;
if (!m_standby_threads.empty())

0 comments on commit efa9079

Please sign in to comment.