summaryrefslogtreecommitdiffstats
path: root/Python/ceval_gil.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/ceval_gil.c')
-rw-r--r--Python/ceval_gil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval_gil.c b/Python/ceval_gil.c
index e4f7217..b456a9d 100644
--- a/Python/ceval_gil.c
+++ b/Python/ceval_gil.c
@@ -224,7 +224,7 @@ drop_gil(PyInterpreterState *interp, PyThreadState *tstate)
return;
}
#endif
- if (!_Py_atomic_load_ptr_relaxed(&gil->locked)) {
+ if (!_Py_atomic_load_int_relaxed(&gil->locked)) {
Py_FatalError("drop_gil: GIL is not locked");
}