Skip to content

Commit 7c3f385

Browse files
committed
Fix Visual Studio warning.
1 parent 0ce5b6e commit 7c3f385

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Objects/memoryobject.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2242,7 +2242,7 @@ ptr_from_tuple(Py_buffer *view, PyObject *tup)
22422242
PyExc_IndexError);
22432243
if (index == -1 && PyErr_Occurred())
22442244
return NULL;
2245-
ptr = lookup_dimension(view, ptr, dim, index);
2245+
ptr = lookup_dimension(view, ptr, (int)dim, index);
22462246
if (ptr == NULL)
22472247
return NULL;
22482248
}

0 commit comments

Comments
 (0)