Merge 3.5.
This commit is contained in:
commit
e2cf984384
|
@ -2242,7 +2242,7 @@ ptr_from_tuple(Py_buffer *view, PyObject *tup)
|
||||||
PyExc_IndexError);
|
PyExc_IndexError);
|
||||||
if (index == -1 && PyErr_Occurred())
|
if (index == -1 && PyErr_Occurred())
|
||||||
return NULL;
|
return NULL;
|
||||||
ptr = lookup_dimension(view, ptr, dim, index);
|
ptr = lookup_dimension(view, ptr, (int)dim, index);
|
||||||
if (ptr == NULL)
|
if (ptr == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue