Skip to content

Commit

Permalink
Use free-threaded atomic wrapper in deque_len, too
Browse files Browse the repository at this point in the history
  • Loading branch information
mpage committed Feb 14, 2024
1 parent 6ffad44 commit fa7e8a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/_collectionsmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -1214,7 +1214,7 @@ deque_contains(dequeobject *deque, PyObject *v)
static Py_ssize_t
deque_len(dequeobject *deque)
{
return _Py_atomic_load_ssize(&((PyVarObject *)deque)->ob_size);
return FT_ATOMIC_LOAD_SSIZE(((PyVarObject *)deque)->ob_size);
}

/*[clinic input]
Expand Down

0 comments on commit fa7e8a8

Please sign in to comment.