Fix issue in initializing an atomic_int with an int

(not supported by C11).
This commit is contained in:
Patrick Pelissier committed 2017-04-08 11:03:59 +02:00
1 parent 8d26ff5c00
commit 1e729940c4
1 file changed
+2 -2
+2 -2
View File
@@ -79,7 +79,7 @@
M_C3(ishared_, name, _init)(type *ptr) \
{ \
if (ptr != NULL) \
ptr->M_C(name, _cpt) = 1; \
atomic_init(&ptr->M_C(name, _cpt), 1); \
return ptr; \
} \
\
@@ -107,7 +107,7 @@
return NULL; \
} \
M_GET_INIT oplist (*ptr); \
ptr->M_C(name, _cpt) = 1; \
atomic_init (&ptr->M_C(name, _cpt), 1); \
return ptr; \
} \
\