]> granicus.if.org Git - python/commitdiff
Revert part of 3cb3e224b692 in code that I maintain.
authorStefan Krah <skrah@bytereef.org>
Sun, 8 Jan 2017 00:11:27 +0000 (01:11 +0100)
committerStefan Krah <skrah@bytereef.org>
Sun, 8 Jan 2017 00:11:27 +0000 (01:11 +0100)
Modules/_testbuffer.c

index 13d3cccfa4ff7fd91ae70d588f9288f9a402e9e2..43db8a8e53a34a3826c5517109f081d406b313fc 100644 (file)
@@ -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)