diff options
author | Jack J. Woehr <jwoehr@softwoehr.com> | 2019-10-19 13:53:24 -0600 |
---|---|---|
committer | Jack J. Woehr <jwoehr@softwoehr.com> | 2019-10-19 13:53:24 -0600 |
commit | d9ecdea76019ae3d744fb557779a8db0ef4372a3 (patch) | |
tree | 4e0f24fd301927b242dedd7fb9845c185d40c1d9 /numpy/core | |
parent | 68861de642f75b7b8f53e2b8602d76e21d938c2c (diff) | |
download | numpy-d9ecdea76019ae3d744fb557779a8db0ef4372a3.tar.gz |
oops removed an (signed char) ... fixed
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 76da3949c..58af44091 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 = labels[idim]; + label = (signed char)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 = labels[idim]; + int label = (signed char)labels[idim]; npy_intp dim = PyArray_DIM(op, idim); npy_intp stride = PyArray_STRIDE(op, idim); |