Skip to content

Commit

Permalink
Merge pull request #25136 from hawkinsp/align
Browse files Browse the repository at this point in the history
BUG: Fix -fsanitize=alignment issue in numpy/_core/src/multiarray/arraytypes.c.src
  • Loading branch information
seberg committed Nov 15, 2023
2 parents 0419d0a + fa21c58 commit 71f7dcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numpy/_core/src/multiarray/arraytypes.c.src
Original file line number Diff line number Diff line change
Expand Up @@ -2856,7 +2856,7 @@ OBJECT_nonzero (PyObject **ip, PyArrayObject *ap)
}
else {
PyObject *obj;
memcpy(&obj, ip, sizeof(obj));
memcpy(&obj, (void *)ip, sizeof(obj));
if (obj == NULL) {
return NPY_FALSE;
}
Expand Down

0 comments on commit 71f7dcf

Please sign in to comment.