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
147 length = PyArray_SIZE ((PyArrayObject *)input);147 length = PyArray_SIZE ((PyArrayObject *)input);
148 if (length != vec->length) {148 if (length != vec->length) {
149 PyErr_Format (PyExc_ValueError,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 vec->length);151 vec->length);
152 return 1;152 return 1;
153 }153 }
@@ -168,7 +168,7 @@ Py_cvec_set_phas (Py_cvec * vec, PyObject *input, void * closure) · 14 unmodified lines
168 length = PyArray_SIZE ((PyArrayObject *)input);168 length = PyArray_SIZE ((PyArrayObject *)input);
169 if (length != vec->length) {169 if (length != vec->length) {
170 PyErr_Format (PyExc_ValueError,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 vec->length);172 vec->length);
173 return 1;173 return 1;
174 }174 }

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