mirror of
https://github.com/python/cpython.git
synced 2025-10-21 14:12:27 +00:00
Fixed few compiler warnings.
This commit is contained in:
parent
a9e00d13cd
commit
53fa8b2a4b
5 changed files with 9 additions and 10 deletions
|
@ -403,7 +403,7 @@ tstate_delete_common(PyThreadState *tstate)
|
|||
void
|
||||
PyThreadState_Delete(PyThreadState *tstate)
|
||||
{
|
||||
if (tstate == _Py_atomic_load_relaxed(&_PyThreadState_Current))
|
||||
if (tstate == (PyThreadState*)_Py_atomic_load_relaxed(&_PyThreadState_Current))
|
||||
Py_FatalError("PyThreadState_Delete: tstate is still current");
|
||||
#ifdef WITH_THREAD
|
||||
if (autoInterpreterState && PyThread_get_key_value(autoTLSkey) == tstate)
|
||||
|
@ -662,7 +662,7 @@ PyThreadState_IsCurrent(PyThreadState *tstate)
|
|||
{
|
||||
/* Must be the tstate for this thread */
|
||||
assert(PyGILState_GetThisThreadState()==tstate);
|
||||
return tstate == _Py_atomic_load_relaxed(&_PyThreadState_Current);
|
||||
return tstate == (PyThreadState*)_Py_atomic_load_relaxed(&_PyThreadState_Current);
|
||||
}
|
||||
|
||||
/* Internal initialization/finalization functions called by
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue