Skip to content

Commit 1daefec

Browse files
committed
m_size actually zero now
1 parent ff307d8 commit 1daefec

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src_c/surface.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ typedef enum {
5353
} SurfViewKind;
5454

5555
/* 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";
56+
#define FormatUint8 "B"
57+
#define FormatUint16 "=H"
58+
#define FormatUint24 "3x"
59+
#define FormatUint32 "=I"
6060

6161
typedef struct pg_bufferinternal_s {
6262
PyObject *consumer_ref; /* A weak reference to a bufferproxy object */

0 commit comments

Comments
 (0)