diff options
author | Benjamin Peterson <benjamin@python.org> | 2016-09-06 13:47:26 -0700 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2016-09-06 13:47:26 -0700 |
commit | 82b75eb31160ec9c025e450ac9fa3300d560a245 (patch) | |
tree | 09af59ad4c2773eb8c1c8549aaeb6ed284fd9740 /Python/ceval_gil.h | |
parent | 76a2df1b6a3a821478824071fe9bb26717336846 (diff) | |
download | cpython-82b75eb31160ec9c025e450ac9fa3300d560a245.tar.gz |
replace Py_(u)intptr_t with the c99 standard types
Diffstat (limited to 'Python/ceval_gil.h')
-rw-r--r-- | Python/ceval_gil.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/ceval_gil.h b/Python/ceval_gil.h index 8d38ee9dfc..a3b450bd5c 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; } |