diff options
author | Benjamin Peterson <benjamin@python.org> | 2016-09-06 20:47:26 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2016-09-06 20:47:26 (GMT) |
commit | ca4706399879b30e952c402637b4fc0d4d2e661c (patch) | |
tree | 72f97b545d4d31afd06a8874fcbb578cb178aa0d /Modules/faulthandler.c | |
parent | 3c397e4c39430000348f2f64d9e394bf1b61c509 (diff) | |
download | cpython-ca4706399879b30e952c402637b4fc0d4d2e661c.zip cpython-ca4706399879b30e952c402637b4fc0d4d2e661c.tar.gz cpython-ca4706399879b30e952c402637b4fc0d4d2e661c.tar.bz2 |
replace Py_(u)intptr_t with the c99 standard types
Diffstat (limited to 'Modules/faulthandler.c')
-rw-r--r-- | Modules/faulthandler.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/faulthandler.c b/Modules/faulthandler.c index 8969b4c..c2d3000 100644 --- a/Modules/faulthandler.c +++ b/Modules/faulthandler.c @@ -1072,12 +1072,12 @@ faulthandler_fatal_error_py(PyObject *self, PyObject *args) # pragma intel optimization_level 0 #endif static -Py_uintptr_t -stack_overflow(Py_uintptr_t min_sp, Py_uintptr_t max_sp, size_t *depth) +uintptr_t +stack_overflow(uintptr_t min_sp, uintptr_t max_sp, size_t *depth) { /* allocate 4096 bytes on the stack at each call */ unsigned char buffer[4096]; - Py_uintptr_t sp = (Py_uintptr_t)&buffer; + uintptr_t sp = (uintptr_t)&buffer; *depth += 1; if (sp < min_sp || max_sp < sp) return sp; @@ -1090,8 +1090,8 @@ static PyObject * faulthandler_stack_overflow(PyObject *self) { size_t depth, size; - Py_uintptr_t sp = (Py_uintptr_t)&depth; - Py_uintptr_t stop; + uintptr_t sp = (uintptr_t)&depth; + uintptr_t stop; faulthandler_suppress_crash_report(); depth = 0; |