[Python-checkins] cpython (3.5): Fix Visual Studio warning.

stefan.krah python-checkins at python.org
Tue Nov 10 12:36:18 EST 2015


https://hg.python.org/cpython/rev/e445ebe2ec0c
changeset:   99048:e445ebe2ec0c
branch:      3.5
parent:      99046:f3d8bb3ffa98
user:        Stefan Krah <skrah at bytereef.org>
date:        Tue Nov 10 18:35:19 2015 +0100
summary:
  Fix Visual Studio warning.

files:
  Objects/memoryobject.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Objects/memoryobject.c b/Objects/memoryobject.c
--- a/Objects/memoryobject.c
+++ b/Objects/memoryobject.c
@@ -2242,7 +2242,7 @@
                                    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;
     }

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list