Fix issue in initializing an atomic_int with an int
(not supported by C11).
This commit is contained in:
1 parent
8d26ff5c00
commit
1e729940c4
1 file changed
+2
-2
+2
-2
@@ -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; \
|
||||
} \
|
||||
\
|
||||
|
||||
Reference in new issue
Block a user