summaryrefslogtreecommitdiff
path: root/Modules/faulthandler.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@wyplay.com>2011-09-07 16:18:56 +0200
committerVictor Stinner <vstinner@wyplay.com>2011-09-07 16:18:56 +0200
commit425fcd3045708a6e8ce1c15c6950101d2523dd59 (patch)
tree36c38501f1bdf012275dc6cd755a16888e8ab262 /Modules/faulthandler.c
parentea0d5fcb4a6ba8f7fa7691a9e92cbec4918dcce8 (diff)
downloadcpython-git-425fcd3045708a6e8ce1c15c6950101d2523dd59.tar.gz
Issue #12929: faulthandler now uses char* for arithmetic on pointers
instead of void*
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 b2ac83fb84..15d6863c7c 100644
--- a/Modules/faulthandler.c
+++ b/Modules/faulthandler.c
@@ -904,7 +904,7 @@ static PyObject *
faulthandler_stack_overflow(PyObject *self)
{
size_t depth, size;
- void *sp = &depth, *stop;
+ char *sp = (char *)&depth, *stop;
depth = 0;
stop = stack_overflow(sp - STACK_OVERFLOW_MAX_SIZE,