diff options
author | Jack Woehr <jwoehr@softwoehr.com> | 2019-10-13 22:08:04 -0400 |
---|---|---|
committer | Jack Woehr <jwoehr@softwoehr.com> | 2019-10-13 22:08:04 -0400 |
commit | 4d4cc4dcf4feaa6c3162b0d07b0f687e477724ad (patch) | |
tree | 3063e82d99ef6c5ac4294688b5f818eba50d041b /numpy/core | |
parent | e2c75d94ee1ea4dd0eb0ab0a394f984c968d9237 (diff) | |
download | numpy-4d4cc4dcf4feaa6c3162b0d07b0f687e477724ad.tar.gz |
fixes #14692 np.einsum errors on Power9 Linux and z/Linux
Diffstat (limited to 'numpy/core')
-rw-r--r-- | numpy/core/src/multiarray/einsum.c.src | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/src/multiarray/einsum.c.src b/numpy/core/src/multiarray/einsum.c.src index e7bbc3d0b..ff02280fe 100644 --- a/numpy/core/src/multiarray/einsum.c.src +++ b/numpy/core/src/multiarray/einsum.c.src @@ -2021,7 +2021,7 @@ get_single_op_view(PyArrayObject *op, char *labels, * The char type may be either signed or unsigned, we * need it to be signed here. */ - label = (signed char)labels[idim]; + label = labels[idim]; /* If this label says to merge axes, get the actual label */ if (label < 0) { label = labels[idim+label]; @@ -2135,7 +2135,7 @@ get_combined_dims_view(PyArrayObject *op, int iop, char *labels) * The char type may be either signed or unsigned, we * need it to be signed here. */ - int label = (signed char)labels[idim]; + int label = labels[idim]; npy_intp dim = PyArray_DIM(op, idim); npy_intp stride = PyArray_STRIDE(op, idim); |