We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae8b776 commit d949bebCopy full SHA for d949beb
1 file changed
multidict/_multilib/state.h
@@ -28,7 +28,7 @@ typedef struct {
28
PyObject *str_lower;
29
PyObject *str_name;
30
31
- uint64_t global_version;
+ _Atomic uint64_t global_version;
32
} mod_state;
33
34
static inline mod_state *
@@ -131,7 +131,7 @@ static inline uint64_t
131
NEXT_VERSION(mod_state *state)
132
{
133
return atomic_fetch_add_explicit(
134
- (_Atomic(uint64_t) *)&state->global_version, 1, memory_order_relaxed);
+ &state->global_version, 1, memory_order_relaxed);
135
}
136
137
#ifdef __cplusplus
0 commit comments