From 690b7bf9c1b348e17fb96e9252acf782448e41b6 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sun, 5 Jul 2020 23:53:06 +0200 Subject: [PATCH] Fix other warning for msys2 --- m-c-mempool.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m-c-mempool.h b/m-c-mempool.h index 8f2ee550..0f647913 100644 --- a/m-c-mempool.h +++ b/m-c-mempool.h @@ -460,7 +460,7 @@ M_BEGIN_PROTECTED_CODE M_C(name, _init)(M_C(name, _t) mem, m_gc_t gc_mem, \ unsigned init_node_count, unsigned init_group_count) \ { \ - const unsigned long max_thread = gc_mem->max_thread; \ + const size_t max_thread = gc_mem->max_thread; \ /* Initialize the thread data of the mempool */ \ mem->thread_data = M_MEMORY_REALLOC(M_C(name, _lfmp_thread_t), NULL, max_thread); \ if (mem->thread_data == NULL) { \