summaryrefslogtreecommitdiffstats
path: root/Objects/memoryobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/memoryobject.c')
-rw-r--r--Objects/memoryobject.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/Objects/memoryobject.c b/Objects/memoryobject.c
index 70ae6cc..9a62dd8 100644
--- a/Objects/memoryobject.c
+++ b/Objects/memoryobject.c
@@ -172,9 +172,6 @@ _strided_copy_nd(char *dest, char *src, int nd, Py_ssize_t *shape,
return;
}
-void _add_one_to_index_F(int nd, Py_ssize_t *index, Py_ssize_t *shape);
-void _add_one_to_index_C(int nd, Py_ssize_t *index, Py_ssize_t *shape);
-
static int
_indirect_copy_nd(char *dest, Py_buffer *view, char fort)
{
@@ -203,10 +200,10 @@ _indirect_copy_nd(char *dest, Py_buffer *view, char fort)
elements *= view->shape[k];
}
if (fort == 'F') {
- func = _add_one_to_index_F;
+ func = _Py_add_one_to_index_F;
}
else {
- func = _add_one_to_index_C;
+ func = _Py_add_one_to_index_C;
}
while (elements--) {
func(view->ndim, indices, view->shape);