]> granicus.if.org Git - python/commitdiff
Fix Visual Studio warning.
authorStefan Krah <skrah@bytereef.org>
Tue, 10 Nov 2015 17:35:19 +0000 (18:35 +0100)
committerStefan Krah <skrah@bytereef.org>
Tue, 10 Nov 2015 17:35:19 +0000 (18:35 +0100)
Objects/memoryobject.c

index fe543662c976968ba471ceea9ef6c2a3d99bbf26..10162cb92ded6eefc17214be877006ab1a7e5699 100644 (file)
@@ -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;
     }