summaryrefslogtreecommitdiffstats
path: root/Objects/memoryobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/memoryobject.c')
-rw-r--r--Objects/memoryobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/memoryobject.c b/Objects/memoryobject.c
index fe54366..10162cb 100644
--- a/Objects/memoryobject.c
+++ b/Objects/memoryobject.c
@@ -2242,7 +2242,7 @@ ptr_from_tuple(Py_buffer *view, PyObject *tup)
PyExc_IndexError);
if (index == -1 && PyErr_Occurred())
return NULL;
- ptr = lookup_dimension(view, ptr, dim, index);
+ ptr = lookup_dimension(view, ptr, (int)dim, index);
if (ptr == NULL)
return NULL;
}