Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 425fcd3

Browse files
committed
Issue #12929: faulthandler now uses char* for arithmetic on pointers
instead of void*
1 parent ea0d5fc commit 425fcd3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/faulthandler.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -904,7 +904,7 @@ static PyObject *
904904
faulthandler_stack_overflow(PyObject *self)
905905
{
906906
size_t depth, size;
907-
void *sp = &depth, *stop;
907+
char *sp = (char *)&depth, *stop;
908908

909909
depth = 0;
910910
stop = stack_overflow(sp - STACK_OVERFLOW_MAX_SIZE,

0 commit comments

Comments
 (0)