ref: a203d0e12cdeb3ad0b3b4fa7b4550f447592bd02
parent: bab8e3d1653214a07a4f5de657e42bffc1d32287
author: Paul Brossier <piem@piem.org>
date: Mon Nov 28 12:19:32 EST 2016
python/ext/py-cvec.c: use NPY_INTP_FMT
--- a/python/ext/py-cvec.c
+++ b/python/ext/py-cvec.c
@@ -147,7 +147,7 @@
length = PyArray_SIZE ((PyArrayObject *)input);
if (length != vec->length) {
PyErr_Format (PyExc_ValueError,
- "input array has length %ld, but cvec has length %d", length,
+ "input array has length %" NPY_INTP_FMT ", but cvec has length %d", length,
vec->length);
return 1;
}
@@ -168,7 +168,7 @@
length = PyArray_SIZE ((PyArrayObject *)input);
if (length != vec->length) {
PyErr_Format (PyExc_ValueError,
- "input array has length %ld, but cvec has length %d", length,
+ "input array has length %" NPY_INTP_FMT ", but cvec has length %d", length,
vec->length);
return 1;
}