Commit 087070ba authored by Stefan Behnel's avatar Stefan Behnel

Return Py_ssize_t instead of size_t for len(memoryview).

Closes GH-2992.
parent ba6d2c5e
......@@ -2607,7 +2607,7 @@ class OptimizeBuiltinCalls(Visitor.NodeRefCleanupMixin,
is_temp = node.is_temp)
elif arg.type.is_memoryviewslice:
func_type = PyrexTypes.CFuncType(
PyrexTypes.c_size_t_type, [
PyrexTypes.c_py_ssize_t_type, [
PyrexTypes.CFuncTypeArg("memoryviewslice", arg.type, None)
], nogil=True)
new_node = ExprNodes.PythonCapiCallNode(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment