From c7df60c78ddc8b5b701a68f83028101a8db87b79 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Fri, 3 Jul 2020 22:44:34 +0200 Subject: [PATCH] Fix some warnings --- m-c-mempool.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/m-c-mempool.h b/m-c-mempool.h index 74a72528..4aa9363b 100644 --- a/m-c-mempool.h +++ b/m-c-mempool.h @@ -578,7 +578,7 @@ typedef struct m_gc_s { } m_gc_t[1]; static inline void -m_gc_init(m_gc_t gc_mem, unsigned long max_thread) +m_gc_init(m_gc_t gc_mem, size_t max_thread) { assert(gc_mem != NULL); assert(max_thread > 0 && max_thread < INT_MAX); @@ -752,7 +752,7 @@ m_vlapool_int_gc_on_sleep(m_gc_t gc_mem, m_gc_mempool_list_t *data, static inline void m_vlapool_init(m_vlapool_t mem, m_gc_t gc_mem) { - const unsigned long max_thread = gc_mem->max_thread; + const size_t max_thread = gc_mem->max_thread; /* Initialize the thread data of the vlapool */ mem->thread_data = M_MEMORY_REALLOC(m_vlapool_lfmp_thread_t, NULL, max_thread);