Skip to content

Commit d949beb

Browse files
committed
fix compiler issues with mac
1 parent ae8b776 commit d949beb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

multidict/_multilib/state.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ typedef struct {
2828
PyObject *str_lower;
2929
PyObject *str_name;
3030

31-
uint64_t global_version;
31+
_Atomic uint64_t global_version;
3232
} mod_state;
3333

3434
static inline mod_state *
@@ -131,7 +131,7 @@ static inline uint64_t
131131
NEXT_VERSION(mod_state *state)
132132
{
133133
return atomic_fetch_add_explicit(
134-
(_Atomic(uint64_t) *)&state->global_version, 1, memory_order_relaxed);
134+
&state->global_version, 1, memory_order_relaxed);
135135
}
136136

137137
#ifdef __cplusplus

0 commit comments

Comments
 (0)