Showing the changes to python (1 of 1 file). Show all
Unified · Split
| @@ -147,7 +147,7 @@ Py_cvec_set_norm (Py_cvec * vec, PyObject *input, void * closure) · 146 unmodified lines | ||
| 147 | 147 | length = PyArray_SIZE ((PyArrayObject *)input); |
| 148 | 148 | if (length != vec->length) { |
| 149 | 149 | PyErr_Format (PyExc_ValueError, |
| 150 | − "input array has length %ld, but cvec has length %d", length, | |
| 150 | + "input array has length %" NPY_INTP_FMT ", but cvec has length %d", length, | |
| 151 | 151 | vec->length); |
| 152 | 152 | return 1; |
| 153 | 153 | } |
| @@ -168,7 +168,7 @@ Py_cvec_set_phas (Py_cvec * vec, PyObject *input, void * closure) · 14 unmodified lines | ||
| 168 | 168 | length = PyArray_SIZE ((PyArrayObject *)input); |
| 169 | 169 | if (length != vec->length) { |
| 170 | 170 | PyErr_Format (PyExc_ValueError, |
| 171 | − "input array has length %ld, but cvec has length %d", length, | |
| 171 | + "input array has length %" NPY_INTP_FMT ", but cvec has length %d", length, | |
| 172 | 172 | vec->length); |
| 173 | 173 | return 1; |
| 174 | 174 | } |