Fix issue with C++

This commit is contained in:
Patrick Pelissier committed 2017-04-07 17:41:13 +02:00
1 parent c2b2704d23
commit 4861f4d811
1 file changed
+1 -1
+1 -1
View File
@@ -17,7 +17,7 @@ int main(void)
{
shared_int_t p1, p2;
shared_int_init2(p1, malloc(sizeof(int)));
shared_int_init2(p1, M_ASSIGN_CAST(int*, malloc(sizeof(int))));
assert(shared_int_ref(p1) != NULL);
*shared_int_ref(p1) = 12;