8000 Backports #2798 by certik · Pull Request #2859 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

Backports #2798 #2859

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
FIX ValueError: low level cast function is for unequal type numbers
… for object types
  • Loading branch information
cgohlke authored and certik committed Dec 27, 2012
commit 92fc1ebebc1a003955a4eb7a659edc3ad21f742f
1 change: 1 addition & 0 deletions numpy/core/src/multiarray/dtype_transfer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1476,6 +1476,7 @@ get_cast_transfer_function(int aligned,
dst_itemsize = dst_dtype->elsize;

if (src_dtype->type_num == dst_dtype->type_num &&
src_dtype->type_num != NPY_OBJECT &&
src_dtype->type_num != NPY_DATETIME &&
src_dtype->type_num != NPY_TIMEDELTA) {
PyErr_SetString(PyExc_ValueError,
Expand Down
0