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 a6f17c9 commit b5d219eCopy full SHA for b5d219e
1 file changed
Modules/arraymodule.c
@@ -42,11 +42,22 @@ 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
Py_ssize_t allocated;
56
_Alignas(8) char items[];
57
} arraydata;
58
59
+#endif
60
61
typedef struct arrayobject {
62
PyObject_VAR_HEAD
63
arraydata *data;
0 commit comments