We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff307d8 commit 1daefecCopy full SHA for 1daefec
src_c/surface.c
@@ -53,10 +53,10 @@ typedef enum {
53
} SurfViewKind;
54
55
/* To avoid problems with non-const Py_buffer format field */
56
-static char FormatUint8[] = "B";
57
-static char FormatUint16[] = "=H";
58
-static char FormatUint24[] = "3x";
59
-static char FormatUint32[] = "=I";
+#define FormatUint8 "B"
+#define FormatUint16 "=H"
+#define FormatUint24 "3x"
+#define FormatUint32 "=I"
60
61
typedef struct pg_bufferinternal_s {
62
PyObject *consumer_ref; /* A weak reference to a bufferproxy object */
0 commit comments