Skip to content

Commit

Permalink
Merge pull request numpy#276 from charris/fix-format-variable-mismatch
Browse files Browse the repository at this point in the history
BUG: Fix format/variable incompatibility.
  • Loading branch information
stefanv committed May 10, 2012
2 parents bfaaefe + 7939c20 commit 65fdf09
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions numpy/core/src/multiarray/descriptor.c
Original file line number Diff line number Diff line change
Expand Up @@ -2084,7 +2084,6 @@ arraydescr_new(PyTypeObject *NPY_UNUSED(subtype),
static PyObject *
_get_pickleabletype_from_datetime_metadata(PyArray_Descr *dtype)
{
PyObject *newdict;
PyObject *ret, *dt_tuple;
PyArray_DatetimeMetaData *meta;

Expand Down Expand Up @@ -3324,7 +3323,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_INTP_FMT, length);
"Array length must be >= 0, not %"NPY_INTP_FMT, (npy_intp)length);
}
tup = Py_BuildValue("O" NPY_SSIZE_T_PYFMT, self, length);
if (tup == NULL) {
Expand Down

0 comments on commit 65fdf09

Please sign in to comment.