From 016763c26f6f55d6a37ed508ab773b53e709a49f Mon Sep 17 00:00:00 2001 From: David Cournapeau Date: Thu, 12 Mar 2009 14:20:59 +0000 Subject: Fix wrong formatting: Py_ssize_t vs npy_intp. --- numpy/core/src/arrayobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/core/src/arrayobject.c') diff --git a/numpy/core/src/arrayobject.c b/numpy/core/src/arrayobject.c index ff04485d6..954441e04 100644 --- a/numpy/core/src/arrayobject.c +++ b/numpy/core/src/arrayobject.c @@ -12908,7 +12908,7 @@ descr_repeat(PyObject *self, Py_ssize_t length) PyArray_Descr *new; if (length < 0) { return PyErr_Format(PyExc_ValueError, - "Array length must be >= 0, not %"INTP_FMT, + "Array length must be >= 0, not %"NPY_SSIZE_T_PYFMT, length); } tup = Py_BuildValue("O" NPY_SSIZE_T_PYFMT, self, length); -- cgit v1.2.1