From c2b2704d231d2d5f00a9ac76bc6d2e5241a09803 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Fri, 7 Apr 2017 17:35:48 +0200 Subject: [PATCH] Fix issue with C++ --- tests/test-mbuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-mbuffer.c b/tests/test-mbuffer.c index 82ab57ba..6b052a1a 100644 --- a/tests/test-mbuffer.c +++ b/tests/test-mbuffer.c @@ -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);