summaryrefslogtreecommitdiffstats
path: root/Python/ceval_gil.h
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-09-06 20:47:26 (GMT)
committerBenjamin Peterson <benjamin@python.org>2016-09-06 20:47:26 (GMT)
commitca4706399879b30e952c402637b4fc0d4d2e661c (patch)
tree72f97b545d4d31afd06a8874fcbb578cb178aa0d /Python/ceval_gil.h
parent3c397e4c39430000348f2f64d9e394bf1b61c509 (diff)
downloadcpython-ca4706399879b30e952c402637b4fc0d4d2e661c.zip
cpython-ca4706399879b30e952c402637b4fc0d4d2e661c.tar.gz
cpython-ca4706399879b30e952c402637b4fc0d4d2e661c.tar.bz2
replace Py_(u)intptr_t with the c99 standard types
Diffstat (limited to 'Python/ceval_gil.h')
-rw-r--r--Python/ceval_gil.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/ceval_gil.h b/Python/ceval_gil.h
index 8d38ee9..a3b450b 100644
--- a/Python/ceval_gil.h
+++ b/Python/ceval_gil.h
@@ -178,7 +178,7 @@ static void drop_gil(PyThreadState *tstate)
/* Sub-interpreter support: threads might have been switched
under our feet using PyThreadState_Swap(). Fix the GIL last
holder variable so that our heuristics work. */
- _Py_atomic_store_relaxed(&gil_last_holder, (Py_uintptr_t)tstate);
+ _Py_atomic_store_relaxed(&gil_last_holder, (uintptr_t)tstate);
}
MUTEX_LOCK(gil_mutex);
@@ -240,7 +240,7 @@ _ready:
_Py_ANNOTATE_RWLOCK_ACQUIRED(&gil_locked, /*is_write=*/1);
if (tstate != (PyThreadState*)_Py_atomic_load_relaxed(&gil_last_holder)) {
- _Py_atomic_store_relaxed(&gil_last_holder, (Py_uintptr_t)tstate);
+ _Py_atomic_store_relaxed(&gil_last_holder, (uintptr_t)tstate);
++gil_switch_number;
}