diff options
author | Matthias Klose <doko@ubuntu.com> | 2009-04-07 13:24:27 (GMT) |
---|---|---|
committer | Matthias Klose <doko@ubuntu.com> | 2009-04-07 13:24:27 (GMT) |
commit | 091c7b16ffb2e906e41dbcb7316958ef08eabb16 (patch) | |
tree | 80b2d06a50377fa8bb417853f874e845d0ab4d4c /Modules/readline.c | |
parent | a3d29e86611cccb67e59a6f75bb2163f40e4e19e (diff) | |
download | cpython-091c7b16ffb2e906e41dbcb7316958ef08eabb16.zip cpython-091c7b16ffb2e906e41dbcb7316958ef08eabb16.tar.gz cpython-091c7b16ffb2e906e41dbcb7316958ef08eabb16.tar.bz2 |
Merged revisions 71229,71271 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r71229 | matthias.klose | 2009-04-05 14:43:08 +0200 (So, 05 Apr 2009) | 3 lines
- Py_DECREF: Add `do { ... } while (0)' to avoid compiler warnings.
(avoiding brown paper typo this time)
........
r71271 | matthias.klose | 2009-04-05 23:19:13 +0200 (So, 05 Apr 2009) | 3 lines
Issue #1113244: Py_XINCREF, Py_DECREF, Py_XDECREF: Add `do { ... } while (0)'
to avoid compiler warnings.
........
Diffstat (limited to 'Modules/readline.c')
-rw-r--r-- | Modules/readline.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/readline.c b/Modules/readline.c index 22f3dc0..8925d8d 100644 --- a/Modules/readline.c +++ b/Modules/readline.c @@ -693,13 +693,13 @@ on_completion_display_matches_hook(char **matches, r = PyObject_CallFunction(completion_display_matches_hook, "sOi", matches[0], m, max_length); - Py_DECREF(m), m=NULL; + Py_DECREF(m); m=NULL; if (r == NULL || (r != Py_None && PyLong_AsLong(r) == -1 && PyErr_Occurred())) { goto error; } - Py_XDECREF(r), r=NULL; + Py_XDECREF(r); r=NULL; if (0) { error: |