Fix further warnings

This commit is contained in:
Patrick Pelissier committed 2020-07-03 23:03:12 +02:00
1 parent c7df60c78d
commit 04706d48b9
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -584,7 +584,7 @@ m_gc_init(m_gc_t gc_mem, size_t max_thread)
assert(max_thread > 0 && max_thread < INT_MAX);
atomic_init(&gc_mem->ticket, 0UL);
genint_init(gc_mem->thread_alloc, max_thread);
genint_init(gc_mem->thread_alloc, (unsigned int) max_thread);
gc_mem->thread_data = M_MEMORY_REALLOC(m_gc_lfmp_thread_t, NULL, max_thread);
if (gc_mem->thread_data == NULL) {
M_MEMORY_FULL(max_thread * sizeof(m_gc_lfmp_thread_t));
@@ -594,7 +594,7 @@ m_gc_init(m_gc_t gc_mem, size_t max_thread)
atomic_init(&gc_mem->thread_data[i].ticket, ULONG_MAX);
m_core_backoff_init(gc_mem->thread_data[i].bkoff);
}
gc_mem->max_thread = max_thread;
gc_mem->max_thread = (unsigned int) max_thread;
gc_mem->mempool_list = NULL;
}
+1 -1
View File
@@ -105,7 +105,7 @@ static void conso2(void *p)
size_t n = *(size_t*)p;
for(int i = 0; i < 1000000; i++) {
unsigned int j = genint_pop(global);
assert (j != -1U);
assert (j != GENINT_ERROR);
assert (j < n);
genint_push(global, j);
}