Fix issue with C++

This commit is contained in:
Patrick Pelissier committed 2017-08-08 20:11:03 +02:00
1 parent b63313dfcc
commit 75e7cdf3b2
1 file changed
+1 -1
+1 -1
View File
@@ -109,7 +109,7 @@ static void test_free(void)
ilist_free_init(list);
for(int i = 0; i < 1200; i++) {
test_t *p = malloc(sizeof(test_t));
test_t *p = M_ASSIGN_CAST(test_t *, malloc(sizeof(test_t)));
assert(p != NULL);
ilist_free_init_field(p);
p->n = i;