From: Stefan Krah Date: Tue, 10 Nov 2015 17:35:19 +0000 (+0100) Subject: Fix Visual Studio warning. X-Git-Tag: v3.5.1rc1~65 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7c3f3859a570f2cff2dd55c80a7116f0505f22a8;p=python Fix Visual Studio warning. --- diff --git a/Objects/memoryobject.c b/Objects/memoryobject.c index fe543662c9..10162cb92d 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; }