Skip to content

Commit 2c82071

Browse files
committed
shut up check-c-globals
1 parent b5d219e commit 2c82071

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

Modules/arraymodule.c

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,22 +42,14 @@ struct arraydescr {
4242
int is_signed;
4343
};
4444

45-
#ifdef _MSC_VER
46-
47-
typedef __declspec(align(8)) struct {
48-
Py_ssize_t allocated;
49-
char items[];
50-
} arraydata;
51-
52-
#else
53-
5445
typedef struct {
55-
Py_ssize_t allocated;
56-
_Alignas(8) char items[];
46+
union {
47+
Py_ssize_t allocated;
48+
double __alignment_padding; /* In case Py_ssize_t is 4 bytes */
49+
};
50+
char items[];
5751
} arraydata;
5852

59-
#endif
60-
6153
typedef struct arrayobject {
6254
PyObject_VAR_HEAD
6355
arraydata *data;

0 commit comments

Comments
 (0)