]> granicus.if.org Git - python/commitdiff
Fix a compilation warning
authorAntoine Pitrou <solipsis@pitrou.net>
Wed, 1 Sep 2010 21:14:46 +0000 (21:14 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Wed, 1 Sep 2010 21:14:46 +0000 (21:14 +0000)
Objects/memoryobject.c

index 3f203920c7cacbb3fcb1106bbb07575f254afb64..802a92293d1427bed584d52545c51836dfb143dd 100644 (file)
@@ -179,7 +179,7 @@ _indirect_copy_nd(char *dest, Py_buffer *view, char fort)
     int k;
     Py_ssize_t elements;
     char *ptr;
-    void (*func)(int, Py_ssize_t *, Py_ssize_t *);
+    void (*func)(int, Py_ssize_t *, const Py_ssize_t *);
 
     if (view->ndim > PY_SSIZE_T_MAX / sizeof(Py_ssize_t)) {
         PyErr_NoMemory();