diff options
author | David Cournapeau <cournape@gmail.com> | 2009-03-13 05:13:26 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2009-03-13 05:13:26 +0000 |
commit | 74b16f6c0f463bf86f0b7748f4ae700b4c6ddb52 (patch) | |
tree | b05c00db9d59e8dbb5eb4f7f6a63d0142d12fc8d /numpy/core/src/arrayobject.c | |
parent | ff7d5122a42bc1bb0aa45a44a0ac6baab049fed1 (diff) | |
download | numpy-74b16f6c0f463bf86f0b7748f4ae700b4c6ddb52.tar.gz |
Revert "Fix wrong formatting: Py_ssize_t vs npy_intp."
NPY_SSIZE_FORMAT is for parsing from PyArg_* functions, not for printf.
Diffstat (limited to 'numpy/core/src/arrayobject.c')
-rw-r--r-- | numpy/core/src/arrayobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/arrayobject.c b/numpy/core/src/arrayobject.c index 954441e04..ff04485d6 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 %"NPY_SSIZE_T_PYFMT, + "Array length must be >= 0, not %"INTP_FMT, length); } tup = Py_BuildValue("O" NPY_SSIZE_T_PYFMT, self, length); |