diff Modules/_testbuffer.c @ 86356:eaeaed43ff1c

Re #18521: fix not-quite-C syntax that works only because the PyXXX_Check are macros defined with () around them.
author Georg Brandl <georg@python.org>
date Mon, 14 Oct 2013 06:46:12 +0200
parents 12cbb5183d98
children
line wrap: on
line diff
--- a/Modules/_testbuffer.c	Mon Oct 14 02:59:54 2013 +0300
+++ b/Modules/_testbuffer.c	Mon Oct 14 06:46:12 2013 +0200
@@ -1815,7 +1815,7 @@
         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;