Fixed few compiler warnings.

This commit is contained in:
Serhiy Storchaka 2015-02-16 09:40:12 +02:00
parent a9e00d13cd
commit 53fa8b2a4b
5 changed files with 9 additions and 10 deletions

View file

@ -458,7 +458,7 @@ faulthandler_thread(void *unused)
assert(st == PY_LOCK_FAILURE);
/* get the thread holding the GIL, NULL if no thread hold the GIL */
current = _Py_atomic_load_relaxed(&_PyThreadState_Current);
current = (PyThreadState*)_Py_atomic_load_relaxed(&_PyThreadState_Current);
write(thread.fd, thread.header, (int)thread.header_len);