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 b5d219e commit 2c82071Copy full SHA for 2c82071
1 file changed
Modules/arraymodule.c
@@ -42,22 +42,14 @@ struct arraydescr {
42
int is_signed;
43
};
44
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
54
typedef struct {
55
56
- _Alignas(8) char items[];
+ union {
+ Py_ssize_t allocated;
+ double __alignment_padding; /* In case Py_ssize_t is 4 bytes */
+ };
+ char items[];
57
} arraydata;
58
59
-#endif
60
61
typedef struct arrayobject {
62
PyObject_VAR_HEAD
63
arraydata *data;
0 commit comments