Fix issue with C++
This commit is contained in:
1 parent
5418856d5e
commit
c2b2704d23
1 file changed
+1
-1
@@ -170,7 +170,7 @@ ISHARED_PTR_DEF(itest, test_t,
|
|||||||
|
|
||||||
static test_t *test_new(void)
|
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);
|
assert (p != NULL);
|
||||||
test_init (p);
|
test_init (p);
|
||||||
return ishared_itest_init(p);
|
return ishared_itest_init(p);
|
||||||
|
|||||||
Reference in new issue
Block a user