diff options
author | Georg Brandl <georg@python.org> | 2013-10-14 04:46:12 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2013-10-14 04:46:12 (GMT) |
commit | 782952b8fe7fd8b22987e71fd5e21526559540ff (patch) | |
tree | 2067c37bb64b60311308feb0e820a418104489af /Modules/_testbuffer.c | |
parent | 33fc6d6040c1fafe66084c77d06179fce597a19a (diff) | |
download | cpython-782952b8fe7fd8b22987e71fd5e21526559540ff.zip cpython-782952b8fe7fd8b22987e71fd5e21526559540ff.tar.gz cpython-782952b8fe7fd8b22987e71fd5e21526559540ff.tar.bz2 |
Re #18521: fix not-quite-C syntax that works only because the PyXXX_Check are macros defined with () around them.
Diffstat (limited to 'Modules/_testbuffer.c')
-rw-r--r-- | Modules/_testbuffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_testbuffer.c b/Modules/_testbuffer.c index a4e1643..0c6ef16 100644 --- a/Modules/_testbuffer.c +++ b/Modules/_testbuffer.c @@ -1815,7 +1815,7 @@ ndarray_subscript(NDArrayObject *self, PyObject *key) if (init_slice(base, key, 0) < 0) goto err_occurred; } - else if PyTuple_Check(key) { + else if (PyTuple_Check(key)) { /* multi-dimensional slice */ PyObject *tuple = key; Py_ssize_t i, n; |