8000 BUG: fix flags type when exposed to python. · numpy/numpy@bb7e5e2 · GitHub
[go: up one dir, main page]

Skip to content

Commit bb7e5e2

Browse files
cournapecharris
authored andcommitted
BUG: fix flags type when exposed to python.
1 parent 5268fe6 commit bb7e5e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/core/src/multiarray/descriptor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1522,7 +1522,7 @@ static PyMemberDef arraydescr_members[] = {
15221522
{"alignment",
15231523
T_INT, offsetof(PyArray_Descr, alignment), READONLY, NULL},
15241524
{"flags",
1525-
T_INT, offsetof(PyArray_Descr, flags), READONLY, NULL},
1525+
T_BYTE, offsetof(PyArray_Descr, flags), READONLY, NULL},
15261526
{NULL, 0, 0, 0, NULL},
15271527
};
15281528

0 commit comments

Comments
 (0)
0