Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1a977ac

Browse files
committed
BUG: Fixes numpygh-2208, alignment in subarrays
1 parent 4da29a8 commit 1a977ac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

numpy/core/src/multiarray/descriptor.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ _convert_from_tuple(PyObject *obj)
351351
goto fail;
352352
}
353353
newdescr->flags = type->flags;
354+
newdescr->alignment = type->alignment;
354355
newdescr->subarray->base = type;
355356
type = NULL;
356357
Py_XDECREF(newdescr->fields);

0 commit comments

Comments
 (0)