summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-11-27 20:38:36 +0200
committerGitHub <noreply@github.com>2018-11-27 20:38:36 +0200
commit29d2f3c47280f05795c9d4d70f4018cb1488f0ab (patch)
tree9722abaf1a77d81213705efc881096be7647dae0 /Python
parent54fa83e0a3f3b077763cb50705d7a7dbe4a40a4a (diff)
downloadcpython-git-29d2f3c47280f05795c9d4d70f4018cb1488f0ab.tar.gz
[3.6] bpo-33029: Fix signatures of getter and setter functions. (GH-10746) (GH-10749)
Fix also return type for few other functions (clear, releasebuffer). (cherry picked from commit d4f9cf5545d6d8844e0726552ef2e366f5cc3abd)
Diffstat (limited to 'Python')
-rw-r--r--Python/traceback.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/traceback.c b/Python/traceback.c
index 145d028ba3..f489a47276 100644
--- a/Python/traceback.c
+++ b/Python/traceback.c
@@ -65,11 +65,12 @@ tb_traverse(PyTracebackObject *tb, visitproc visit, void *arg)
return 0;
}
-static void
+static int
tb_clear(PyTracebackObject *tb)
{
Py_CLEAR(tb->tb_next);
Py_CLEAR(tb->tb_frame);
+ return 0;
}
PyTypeObject PyTraceBack_Type = {