summaryrefslogtreecommitdiffstats
path: root/Modules/faulthandler.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-02-16 07:40:12 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-02-16 07:40:12 (GMT)
commit53fa8b2a4bbb589d3d761284c70f93e0f852df23 (patch)
tree950b373e6fde26fd3e5bb6282619ed6a38b8f31a /Modules/faulthandler.c
parenta9e00d13cd5d547145ab065c166ca2075e06d6bf (diff)
downloadcpython-53fa8b2a4bbb589d3d761284c70f93e0f852df23.zip
cpython-53fa8b2a4bbb589d3d761284c70f93e0f852df23.tar.gz
cpython-53fa8b2a4bbb589d3d761284c70f93e0f852df23.tar.bz2
Fixed few compiler warnings.
Diffstat (limited to 'Modules/faulthandler.c')
-rw-r--r--Modules/faulthandler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/faulthandler.c b/Modules/faulthandler.c
index 6f7c71d..4643c0e 100644
--- a/Modules/faulthandler.c
+++ b/Modules/faulthandler.c
@@ -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);