Issue #12929: faulthandler now uses char* for arithmetic on pointers

instead of void*
This commit is contained in:
Victor Stinner 2011-09-07 16:18:56 +02:00
parent ea0d5fcb4a
commit 425fcd3045
1 changed files with 1 additions and 1 deletions

View File

@ -904,7 +904,7 @@ static PyObject *
faulthandler_stack_overflow(PyObject *self) faulthandler_stack_overflow(PyObject *self)
{ {
size_t depth, size; size_t depth, size;
void *sp = &depth, *stop; char *sp = (char *)&depth, *stop;
depth = 0; depth = 0;
stop = stack_overflow(sp - STACK_OVERFLOW_MAX_SIZE, stop = stack_overflow(sp - STACK_OVERFLOW_MAX_SIZE,