From a203d0e12cdeb3ad0b3b4fa7b4550f447592bd02 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Mon, 28 Nov 2016 17:19:32 +0100 Subject: [PATCH] python/ext/py-cvec.c: use NPY_INTP_FMT --- python/ext/py-cvec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/ext/py-cvec.c b/python/ext/py-cvec.c index 427cc461..a393c4e2 100644 --- a/python/ext/py-cvec.c +++ b/python/ext/py-cvec.c @@ -147,7 +147,7 @@ Py_cvec_set_norm (Py_cvec * vec, PyObject *input, void * closure) 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 @@ Py_cvec_set_phas (Py_cvec * vec, PyObject *input, void * closure) 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; } -- 2.11.0