[Python-checkins] cpython: Issue #12929: faulthandler now uses char* for arithmetic on pointers
victor.stinner
python-checkins at python.org
Wed Sep 7 16:19:07 CEST 2011
http://hg.python.org/cpython/rev/e91ad9669c08
changeset: 72311:e91ad9669c08
user: Victor Stinner <vstinner at wyplay.com>
date: Wed Sep 07 16:18:56 2011 +0200
summary:
Issue #12929: faulthandler now uses char* for arithmetic on pointers
instead of void*
files:
Modules/faulthandler.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Modules/faulthandler.c b/Modules/faulthandler.c
--- a/Modules/faulthandler.c
+++ b/Modules/faulthandler.c
@@ -904,7 +904,7 @@
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,
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list