Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mpage committed Nov 8, 2024
1 parent 49ec70a commit 0e50451
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Objects/dictobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -7402,11 +7402,13 @@ uint32_t _PyDictKeys_GetVersionForCurrentState(PyInterpreterState *interp,
#ifdef Py_GIL_DISABLED
uint32_t v;
do {
v = _Py_atomic_load_uint32_relaxed(&interp->dict_state.next_keys_version);
v = _Py_atomic_load_uint32_relaxed(
&interp->dict_state.next_keys_version);
if (v == 0) {
return 0;
}
} while(!_Py_atomic_compare_exchange_uint32(&interp->dict_state.next_keys_version, &v, v + 1));
} while (!_Py_atomic_compare_exchange_uint32(
&interp->dict_state.next_keys_version, &v, v + 1));
#else
if (interp->dict_state.next_keys_version == 0) {
return 0;
Expand Down

0 comments on commit 0e50451

Please sign in to comment.