summaryrefslogtreecommitdiffstats
path: root/Modules/_testbuffer.c
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2017-01-08 00:11:27 (GMT)
committerStefan Krah <skrah@bytereef.org>2017-01-08 00:11:27 (GMT)
commitdada5a8d7558d1a7794c4854a8e3f21a999f49b6 (patch)
tree0b7d17e92445a3fa4e14757d02560caa6916d685 /Modules/_testbuffer.c
parent631ada842454dbb18beb8d3677bd37569be153c8 (diff)
downloadcpython-dada5a8d7558d1a7794c4854a8e3f21a999f49b6.zip
cpython-dada5a8d7558d1a7794c4854a8e3f21a999f49b6.tar.gz
cpython-dada5a8d7558d1a7794c4854a8e3f21a999f49b6.tar.bz2
Revert part of 3cb3e224b692 in code that I maintain.
Diffstat (limited to 'Modules/_testbuffer.c')
-rw-r--r--Modules/_testbuffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_testbuffer.c b/Modules/_testbuffer.c
index 13d3ccc..43db8a8 100644
--- a/Modules/_testbuffer.c
+++ b/Modules/_testbuffer.c
@@ -13,7 +13,7 @@ PyObject *Struct = NULL;
PyObject *calcsize = NULL;
/* cache simple format string */
-static const char simple_fmt[] = "B";
+static const char *simple_fmt = "B";
PyObject *simple_format = NULL;
#define SIMPLE_FORMAT(fmt) (fmt == NULL || strcmp(fmt, "B") == 0)
#define FIX_FORMAT(fmt) (fmt == NULL ? "B" : fmt)