mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
Fix Visual Studio warning.
This commit is contained in:
parent
0ce5b6e268
commit
7c3f3859a5
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue