History

python/ext/py-cvec.c: use NPY_INTP_FMT

Paul Brossier committed 9 years ago

Commit a203d0e1 parent bab8e3d1 file · +2 −2Browse files

Showing the changes to python (1 of 1 file). Show all

Unified · Split

python/ext/py-cvec.c+2−2
@@ -147,7 +147,7 @@ Py_cvec_set_norm (Py_cvec * vec, PyObject *input, void * closure) · 146 unmodified lines
147147 length = PyArray_SIZE ((PyArrayObject *)input);
148148 if (length != vec->length) {
149149 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,
151151 vec->length);
152152 return 1;
153153 }
@@ -168,7 +168,7 @@ Py_cvec_set_phas (Py_cvec * vec, PyObject *input, void * closure) · 14 unmodified lines
168168 length = PyArray_SIZE ((PyArrayObject *)input);
169169 if (length != vec->length) {
170170 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,
172172 vec->length);
173173 return 1;
174174 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t