diff options
author | Stefan Krah <skrah@bytereef.org> | 2015-11-10 18:35:19 +0100 |
---|---|---|
committer | Stefan Krah <skrah@bytereef.org> | 2015-11-10 18:35:19 +0100 |
commit | 7c3f3859a570f2cff2dd55c80a7116f0505f22a8 (patch) | |
tree | 4381afe7cee1df33da68a9c6cded0eefc404c0a9 /Objects/memoryobject.c | |
parent | Iaaue #25598: Fix memory_hex from #9951 for non-contiguous buffers. (diff) | |
download | cpython-7c3f3859a570f2cff2dd55c80a7116f0505f22a8.tar.gz cpython-7c3f3859a570f2cff2dd55c80a7116f0505f22a8.tar.bz2 cpython-7c3f3859a570f2cff2dd55c80a7116f0505f22a8.zip |
Fix Visual Studio warning.
Diffstat (limited to 'Objects/memoryobject.c')
-rw-r--r-- | Objects/memoryobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/memoryobject.c b/Objects/memoryobject.c index fe543662c97..10162cb92de 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; } |