Fix issue with C++

This commit is contained in:
Patrick Pelissier committed 2017-04-07 17:35:48 +02:00
1 parent 5418856d5e
commit c2b2704d23
1 file changed
+1 -1
+1 -1
View File
@@ -170,7 +170,7 @@ ISHARED_PTR_DEF(itest, test_t,
static test_t *test_new(void)
{
test_t *p = malloc (sizeof (test_t));
test_t *p = M_ASSIGN_CAST(test_t*, malloc (sizeof (test_t)));
assert (p != NULL);
test_init (p);
return ishared_itest_init(p);