diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-11-27 09:58:07 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-27 09:58:07 -0800 |
| commit | 5ceb7018dc63fab96f81d05e62bbe704e9f10cb9 (patch) | |
| tree | 0cb8b6b5a3f6652b41b83003afa04a433f631385 /Python/traceback.c | |
| parent | d669154ee52048f98ac63ba177f3fd1cf62f0174 (diff) | |
| download | cpython-git-5ceb7018dc63fab96f81d05e62bbe704e9f10cb9.tar.gz | |
bpo-33029: Fix signatures of getter and setter functions. (GH-10746)
Fix also return type for few other functions (clear, releasebuffer).
(cherry picked from commit d4f9cf5545d6d8844e0726552ef2e366f5cc3abd)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Python/traceback.c')
| -rw-r--r-- | Python/traceback.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/traceback.c b/Python/traceback.c index 95bef64e73..8b32864e1d 100644 --- a/Python/traceback.c +++ b/Python/traceback.c @@ -178,11 +178,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 = { |
