Avoid warning with C++

This commit is contained in:
Patrick Pelissier committed 2018-03-31 12:01:05 +02:00
1 parent 64ef1f3aba
commit 9909877771
1 file changed
+3 -2
+3 -2
View File
@@ -113,8 +113,9 @@ static void conso2(void *p)
static void test3(size_t n)
{
m_thread_t idx[n];
m_thread_t idx[MAX_N];
assert (n <= MAX_N);
genint_init(global, n);
for(size_t i = 0; i < n; i++) {
m_thread_create (idx[i], conso2, (void*)&n);